mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
neutrinoapi: fix getVideoFramerateAsString()
Origin commit data
------------------
Branch: ni/coolstream
Commit: c2e1b3686a
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-09-06 (Tue, 06 Sep 2022)
Origin message was:
------------------
- neutrinoapi: fix getVideoFramerateAsString()
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user