Mercurial > libavformat.hg
diff matroskadec.c @ 3687:494a55f131f3 libavformat
matroska: expand useless define for MS compat codec id strings
author | aurel |
---|---|
date | Tue, 05 Aug 2008 00:42:49 +0000 |
parents | c077c928bfe6 |
children | eb4649280c36 |
line wrap: on
line diff
--- a/matroskadec.c Tue Aug 05 00:42:46 2008 +0000 +++ b/matroskadec.c Tue Aug 05 00:42:49 2008 +0000 @@ -1138,12 +1138,12 @@ if (st == NULL) return AVERROR(ENOMEM); - if (!strcmp(track->codec_id, MATROSKA_CODEC_ID_VIDEO_VFW_FOURCC) + if (!strcmp(track->codec_id, "V_MS/VFW/FOURCC") && track->codec_priv.size >= 40 && track->codec_priv.data != NULL) { track->video.fourcc = AV_RL32(track->codec_priv.data + 16); codec_id = codec_get_id(codec_bmp_tags, track->video.fourcc); - } else if (!strcmp(track->codec_id, MATROSKA_CODEC_ID_AUDIO_ACM) + } else if (!strcmp(track->codec_id, "A_MS/ACM") && track->codec_priv.size >= 18 && track->codec_priv.data != NULL) { uint16_t tag = AV_RL16(track->codec_priv.data);