summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-01-23 15:39:15 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-01-23 15:39:15 +0100
commit96ce9817131c79b862916bdf2fdbd31b596bdb29 (patch)
treeaf624ca9027b79f33aad49b3fc1d1836981cddc7 /remux.c
parenteb394c68f165a15d29d1b43bc2590ed42c39574b (diff)
downloadvdr-96ce9817131c79b862916bdf2fdbd31b596bdb29.tar.gz
vdr-96ce9817131c79b862916bdf2fdbd31b596bdb29.tar.bz2
Fixed determining the frame duration on channels where the PTS deltas jitter by +/-1 around 1800
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/remux.c b/remux.c
index c8610327..5c41e3cb 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.37 2009/12/31 15:35:37 kls Exp $
+ * $Id: remux.c 2.38 2010/01/23 15:39:15 kls Exp $
*/
#include "remux.h"
@@ -845,7 +845,7 @@ 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) {
+ else if (abs(Delta - 1800) <= 1) {
frameDuration = 3600; // PAL, 25 fps
framesPerPayloadUnit = -2;
}