summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-06 13:19:19 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-06 13:19:19 +0100
commite57611dfd37ddbaf667bda5fa420bd1cc10b0793 (patch)
tree819c076244ae9d7c5a2ae2921432fbc3a7012a87 /device.c
parent20b213201a897e5a6d88fb889cc44865d07dfb57 (diff)
downloadvdr-e57611dfd37ddbaf667bda5fa420bd1cc10b0793.tar.gz
vdr-e57611dfd37ddbaf667bda5fa420bd1cc10b0793.tar.bz2
Fixed the "pre 1.3.19" compatibility mode for old Dolby Digital recordings
Diffstat (limited to 'device.c')
-rw-r--r--device.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/device.c b/device.c
index ad852d3a..a690cb1c 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 1.84 2005/02/06 12:30:01 kls Exp $
+ * $Id: device.c 1.85 2005/02/06 13:13:31 kls Exp $
*/
#include "device.h"
@@ -857,9 +857,6 @@ 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:
- //TODO apparently this doesn't work for old ORF Dolby Digital recordings
- if (!pre_1_3_19_PrivateStream && (Data[6] & 4) && Data[PayloadOffset] == 0x0B && Data[PayloadOffset + 1] == 0x77)
- pre_1_3_19_PrivateStream = true;
if (pre_1_3_19_PrivateStream) {
SubStreamId = c;
SubStreamType = 0x80;
@@ -885,6 +882,13 @@ int cDevice::PlayPesPacket(const uchar *Data, int Length, bool VideoOnly)
if (!VideoOnly && SubStreamId == availableTracks[currentAudioTrack].id)
w = PlayAudio(Start, d);
break;
+ default:
+ // Compatibility mode for old VDR recordings, where 0xBD was only AC3:
+ if (!pre_1_3_19_PrivateStream) {
+ dsyslog("switching to pre 1.3.19 Dolby Digital compatibility mode");
+ ClrAvailableTracks();
+ pre_1_3_19_PrivateStream = true;
+ }
}
}
break;