summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-04-12 14:14:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2008-04-12 14:14:07 +0200
commit9d17559caf8c61fc687f6d13f4dbf64f9b001e8d (patch)
treee8e98c429658d2bda7c8c7087080c5b0865d486e /device.c
parent0e5bc7773af3a654483b6525eb9ff494153c0cb8 (diff)
downloadvdr-9d17559caf8c61fc687f6d13f4dbf64f9b001e8d.tar.gz
vdr-9d17559caf8c61fc687f6d13f4dbf64f9b001e8d.tar.bz2
Fixed handling the counter in detection of pre 1.3.19 PS data
Diffstat (limited to 'device.c')
-rw-r--r--device.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/device.c b/device.c
index 420d9a50..12b8dd95 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 2.1 2008/04/12 11:15:32 kls Exp $
+ * $Id: device.c 2.2 2008/04/12 14:12:14 kls Exp $
*/
#include "device.h"
@@ -1294,7 +1294,7 @@ int cDevice::PlayPesPacket(const uchar *Data, int Length, bool VideoOnly)
uchar SubStreamIndex = SubStreamId & 0x1F;
// Compatibility mode for old VDR recordings, where 0xBD was only AC3:
-pre_1_3_19_PrivateStreamDeteced:
+pre_1_3_19_PrivateStreamDetected:
if (pre_1_3_19_PrivateStream > MIN_PRE_1_3_19_PRIVATESTREAM) {
SubStreamId = c;
SubStreamType = 0x80;
@@ -1335,7 +1335,8 @@ pre_1_3_19_PrivateStreamDeteced:
if (pre_1_3_19_PrivateStream > MIN_PRE_1_3_19_PRIVATESTREAM) {
dsyslog("switching to pre 1.3.19 Dolby Digital compatibility mode - substream id = %02X", SubStreamId);
ClrAvailableTracks();
- goto pre_1_3_19_PrivateStreamDeteced;
+ pre_1_3_19_PrivateStream = MIN_PRE_1_3_19_PRIVATESTREAM + 1;
+ goto pre_1_3_19_PrivateStreamDetected;
}
}
}