summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-09-14 10:43:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-09-14 10:43:46 +0200
commitc89a6862549bd93819f831f42622b16309f9ce44 (patch)
treebe7880b35dc7d9ef708943437f6e340c480bceba /remux.c
parente7ee82ad16308abbbdbe07102e948ee53711be4c (diff)
downloadvdr-c89a6862549bd93819f831f42622b16309f9ce44.tar.gz
vdr-c89a6862549bd93819f831f42622b16309f9ce44.tar.bz2
Fixed checking for VIDEO_STREAM_S in cRemux::SetBrokenLink()
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 6dc37e1b..5ea24bf9 100644
--- a/remux.c
+++ b/remux.c
@@ -8,7 +8,7 @@
* the Linux DVB driver's 'tuxplayer' example and were rewritten to suit
* VDR's needs.
*
- * $Id: remux.c 1.16 2003/08/06 14:44:03 kls Exp $
+ * $Id: remux.c 1.17 2003/09/14 10:34:39 kls Exp $
*/
/* The calling interface of the 'cRemux::Process()' function is defined
@@ -672,7 +672,7 @@ XXX*/
void cRemux::SetBrokenLink(uchar *Data, int Length)
{
- if (Length > 9 && Data[0] == 0 && Data[1] == 0 && Data[2] == 1 && (Data[3] & VIDEO_STREAM_S) == VIDEO_STREAM_S) {
+ if (Length > 9 && Data[0] == 0 && Data[1] == 0 && Data[2] == 1 && (Data[3] & 0xF0) == VIDEO_STREAM_S) {
for (int i = Data[8] + 9; i < Length - 7; i++) { // +9 to skip video packet header
if (Data[i] == 0 && Data[i + 1] == 0 && Data[i + 2] == 1 && Data[i + 3] == 0xB8) {
if (!(Data[i + 7] & 0x40)) // set flag only if GOP is not closed