changeset 32940:5bab4a2e1b59

100l, actually only dnet tag indicates byte-swapped AC-3.
author reimar
date Sat, 05 Mar 2011 12:09:25 +0000
parents 26bbfa0249e0
children 4c49c83f2af7
files libmpdemux/demuxer.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Sat Mar 05 12:03:03 2011 +0000
+++ b/libmpdemux/demuxer.c	Sat Mar 05 12:09:25 2011 +0000
@@ -476,13 +476,13 @@
         codec_id = CODEC_ID_AAC_LATM;
         break;
     case 0x2000:
-        codec_id = CODEC_ID_AC3;
-        break;
     case 0x332D6361:
     case 0x332D4341:
     case 0x20736D:
+    case MKTAG('s', 'a', 'c', '3'):
+        codec_id = CODEC_ID_AC3;
+        break;
     case MKTAG('d', 'n', 'e', 't'):
-    case MKTAG('s', 'a', 'c', '3'):
         // DNET/byte-swapped AC-3 - there is no parser for that yet
         //codec_id = CODEC_ID_DNET;
         break;