summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-04-18 14:59:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-04-18 14:59:55 +0200
commitce4c062e0d81b3e8aa9f927742c565565fc0e2c3 (patch)
tree98b8c2369063e8f1e65ddb6d3083993cdf5827a7 /remux.c
parentefd7427bbee8279b8e1444681aa6f51a20d8df88 (diff)
downloadvdr-ce4c062e0d81b3e8aa9f927742c565565fc0e2c3.tar.gz
vdr-ce4c062e0d81b3e8aa9f927742c565565fc0e2c3.tar.bz2
Fixed detecting the frame rate for streams with PTS distances of 1800
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/remux.c b/remux.c
index 89fe85d4..f428dcb2 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 2.17 2009/04/05 14:07:48 kls Exp $
+ * $Id: remux.c 2.18 2009/04/18 14:53:42 kls Exp $
*/
#include "remux.h"
@@ -732,6 +732,10 @@ int cFrameDetector::Analyze(const uchar *Data, int Length)
frameDuration = 3600; // PAL, 25 fps
else if (Delta % 3003 == 0)
frameDuration = 3003; // NTSC, 29.97 fps
+ else if (Delta == 1800) {
+ frameDuration = 3600; // PAL, 25 fps
+ framesPerPayloadUnit = -2;
+ }
else if (Delta == 1501) {
frameDuration = 3003; // NTSC, 29.97 fps
framesPerPayloadUnit = -2;