changeset 11114:d8ddd7727084

More liberal codec id recognition for AC3 codecs (needed for transcoded DNET from RM).
author mosu
date Tue, 14 Oct 2003 13:45:31 +0000
parents d1a941c25b4d
children 10972fd355bf
files libmpdemux/demux_mkv.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.cpp	Tue Oct 14 12:22:46 2003 +0000
+++ b/libmpdemux/demux_mkv.cpp	Tue Oct 14 13:45:31 2003 +0000
@@ -709,7 +709,7 @@
         } else {
           if (!strcmp(t->codec_id, MKV_A_MP3))
             t->a_formattag = 0x0055;
-          else if (!strcmp(t->codec_id, MKV_A_AC3))
+          else if (!strncmp(t->codec_id, MKV_A_AC3, strlen(MKV_A_AC3)))
             t->a_formattag = 0x2000;
           else if (!strcmp(t->codec_id, MKV_A_DTS))
             // uses same format tag as AC3, only supported with -hwac3
@@ -1754,7 +1754,7 @@
       sh_a->wf->wBitsPerSample = 0;
       sh_a->samplesize = 0;
 
-    } else if (!strcmp(track->codec_id, MKV_A_AC3)) {
+    } else if (!strncmp(track->codec_id, MKV_A_AC3, strlen(MKV_A_AC3))) {
       sh_a->wf->nAvgBytesPerSec = 16000;
       sh_a->wf->nBlockAlign = 1536;
       sh_a->wf->wBitsPerSample = 0;