From f446200df139888c13082f751efb6f959b532bf8 Mon Sep 17 00:00:00 2001 From: mosu Date: Tue, 14 Oct 2003 13:45:31 +0000 Subject: [PATCH] More liberal codec id recognition for AC3 codecs (needed for transcoded DNET from RM). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11115 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_mkv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpdemux/demux_mkv.cpp b/libmpdemux/demux_mkv.cpp index cd77c763e6..d66c06768f 100644 --- a/libmpdemux/demux_mkv.cpp +++ b/libmpdemux/demux_mkv.cpp @@ -709,7 +709,7 @@ static int check_track_information(mkv_demuxer_t *d) { } 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 @@ extern "C" int demux_mkv_open(demuxer_t *demuxer) { 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;