Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] [PATCH] improve compatibility with old DD recordings



Hi,
I have a lot of older recording with DD which are not recognised
by vdr. The attached patch improves compatibility for me.

Technical: many of recordings doesn't have set the align bit even
that the data is actualy align. I take the pts/dts flags a second
best indicator for aligned data.

Regards.

-- 
Stefan Huelswitt
s.huelswitt@gmx.de  | http://www.muempf.de/
--- vdr-1.3.19-orig/device.c	2005-01-23 16:41:05.000000000 +0100
@@ -847,7 +893,7 @@
 
                // 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)
+               if (!pre_1_3_19_PrivateStream && ((Data[6] & 4) || (Data[7] & 0xC0)) && Data[PayloadOffset] == 0x0B && Data[PayloadOffset + 1] == 0x77)
                   pre_1_3_19_PrivateStream = true;
                if (pre_1_3_19_PrivateStream) {
                   SubStreamId = c;

Home | Main Index | Thread Index