summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-03-11 09:57:21 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-03-11 09:57:21 +0100
commit371e60238a35635817dafdf4e1edb4ae849ee084 (patch)
tree6f5b9ff0594911659c65d22b3742babb650ab2bc /remux.c
parentcc306290da581eaf95d0ba18347d16e270d24b67 (diff)
downloadvdr-371e60238a35635817dafdf4e1edb4ae849ee084.tar.gz
vdr-371e60238a35635817dafdf4e1edb4ae849ee084.tar.bz2
Added detection of 24fps
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/remux.c b/remux.c
index 23e83877..6c07efcb 100644
--- a/remux.c
+++ b/remux.c
@@ -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;