[MPlayer-cvslog] r33026 - trunk/libmpdemux/demuxer.c

reimar subversion at mplayerhq.hu
Sat Mar 5 13:03:03 CET 2011


Author: reimar
Date: Sat Mar  5 13:03:03 2011
New Revision: 33026

Log:
Do not run the AC-3 parser on DNET (byte-swapped AC-3), that will break badly.

Modified:
   trunk/libmpdemux/demuxer.c

Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c	Fri Mar  4 14:58:48 2011	(r33025)
+++ trunk/libmpdemux/demuxer.c	Sat Mar  5 13:03:03 2011	(r33026)
@@ -476,12 +476,15 @@ static void allocate_parser(AVCodecConte
         codec_id = CODEC_ID_AAC_LATM;
         break;
     case 0x2000:
+        codec_id = CODEC_ID_AC3;
+        break;
     case 0x332D6361:
     case 0x332D4341:
     case 0x20736D:
     case MKTAG('d', 'n', 'e', 't'):
     case MKTAG('s', 'a', 'c', '3'):
-        codec_id = CODEC_ID_AC3;
+        // DNET/byte-swapped AC-3 - there is no parser for that yet
+        //codec_id = CODEC_ID_DNET;
         break;
     case MKTAG('E', 'A', 'C', '3'):
         codec_id = CODEC_ID_EAC3;


More information about the MPlayer-cvslog mailing list