diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-03-11 09:57:21 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-03-11 09:57:21 +0100 |
commit | 371e60238a35635817dafdf4e1edb4ae849ee084 (patch) | |
tree | 6f5b9ff0594911659c65d22b3742babb650ab2bc | |
parent | cc306290da581eaf95d0ba18347d16e270d24b67 (diff) | |
download | vdr-371e60238a35635817dafdf4e1edb4ae849ee084.tar.gz vdr-371e60238a35635817dafdf4e1edb4ae849ee084.tar.bz2 |
Added detection of 24fps
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | remux.c | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e9294ba4..8c2c4990 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3313,6 +3313,7 @@ Thomas Reufer <thomas@reufer.ch> skipping" for suggesting to change the return value of cOsd::RenderPixmaps() from cPixmapMemory to cPixmap + for adding detection of 24fps Eike Sauer <EikeSauer@t-online.de> for reporting a problem with channels that need more than 5 TS packets for detecting @@ -8596,7 +8596,7 @@ Video Disk Recorder Revision History - Bumped all version numbers to 2.2.0. - Official release. -2015-03-09: Version 2.3.1 +2015-03-11: Version 2.3.1 - The new function cOsd::MaxPixmapSize() can be called to determine the maximum size a cPixmap may have on the current OSD. The 'osddemo' example has been modified @@ -8605,3 +8605,4 @@ Video Disk Recorder Revision History to 2048x2048 pixel. - The Setup/CAM menu now displays which device an individual CAM is currently assigned to (suggested by Frank Neumann). +- Added detection of 24fps (thanks to Thomas Reufer). @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: remux.c 3.9 2015/01/14 09:57:09 kls Exp $ + * $Id: remux.c 4.1 2015/03/11 09:49:38 kls Exp $ */ #include "remux.h" @@ -1552,7 +1552,9 @@ int cFrameDetector::Analyze(const uchar *Data, int Length) uint32_t Delta = ptsValues[0] / Div; // determine frame info: if (isVideo) { - if (abs(Delta - 3600) <= 1) + if (Delta == 3753) + framesPerSecond = 24.0 / 1.001; + else if (abs(Delta - 3600) <= 1) framesPerSecond = 25.0; else if (Delta % 3003 == 0) framesPerSecond = 30.0 / 1.001; |