summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-09-14 09:11:18 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-09-14 09:11:18 +0200
commitc9ac6f5196c63d6999ea764f7d9d7a2367f20f51 (patch)
treee5a7644fb1a31185e6c71939005ec544d74565cc /remux.c
parentcc16e9fdc73bcba6cc5fb677111cf76fcbc6a2c7 (diff)
downloadvdr-c9ac6f5196c63d6999ea764f7d9d7a2367f20f51.tar.gz
vdr-c9ac6f5196c63d6999ea764f7d9d7a2367f20f51.tar.bz2
Fixed mapping the frame type bits when detecting independent frames in MPEG 4 video
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/remux.c b/remux.c
index bd06e7ce..3698cc41 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.64 2012/03/02 10:56:49 kls Exp $
+ * $Id: remux.c 2.65 2012/09/14 09:06:14 kls Exp $
*/
#include "remux.h"
@@ -974,8 +974,8 @@ int cFrameDetector::Analyze(const uchar *Data, int Length)
if (FrameTypeOffset >= TS_SIZE) // the byte to check is in the next TS packet
i = SkipPackets(Data, Length, Processed, FrameTypeOffset);
newFrame = true;
- uchar FrameType = Data[FrameTypeOffset];
- independentFrame = FrameType == 0x10;
+ uchar FrameType = Data[FrameTypeOffset] & 0xE0;
+ independentFrame = FrameType == 0x00;
if (synced) {
if (framesPerPayloadUnit < 0) {
payloadUnitOfFrame = (payloadUnitOfFrame + 1) % -framesPerPayloadUnit;