neutrinoapi: fix getVideoFramerateAsString()

Origin commit data
------------------
Commit: c2e1b3686a
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-09-06 (Tue, 06 Sep 2022)

Origin message was:
------------------
- neutrinoapi: fix getVideoFramerateAsString()
This commit is contained in:
vanhofen
2022-09-06 20:35:09 +02:00
parent 3a9809cf5b
commit f8694c3b08

View File

@@ -487,11 +487,32 @@ std::string CNeutrinoAPI::getVideoFramerateAsString(void)
int xres = 0, yres = 0, framerate = 0;
std::string sframerate = "{=L:unknown=}";
videoDecoder->getPictureInfo(xres, yres, framerate);
switch(framerate){
switch (framerate)
{
case 0:
sframerate="23.976fps";
break;
case 1:
sframerate="24fps";
break;
case 2:
sframerate="25fps";break;
sframerate="25fps";
break;
case 3:
sframerate="29.97fps";
break;
case 4:
sframerate="30fps";
break;
case 5:
sframerate="50fps";break;
sframerate="50fps";
break;
case 6:
sframerate="59.94fps";
break;
case 7:
sframerate="60fps";
break;
}
return sframerate;
}