# HG changeset patch # User michael # Date 1186186948 0 # Node ID 4f946c9ae9b3f166627fb2883d03f5ae537eec9a # Parent acdc747b9ff3a8f2fc63a51767e747cdaf97446e detect MS wav codecs fixes detection of audio codec though not playback of surge-2-16-L-ms11.mov diff -r acdc747b9ff3 -r 4f946c9ae9b3 mov.c --- a/mov.c Fri Aug 03 08:56:00 2007 +0000 +++ b/mov.c Sat Aug 04 00:22:28 2007 +0000 @@ -603,6 +603,9 @@ st->codec->codec_tag = format; id = codec_get_id(codec_movaudio_tags, format); + if (id<=0 && (format&0xFFFF) == 'm' + ('s'<<8)) + id = codec_get_id(codec_wav_tags, bswap_32(format)&0xFFFF); + if (st->codec->codec_type != CODEC_TYPE_VIDEO && id > 0) { st->codec->codec_type = CODEC_TYPE_AUDIO; } else if (st->codec->codec_type != CODEC_TYPE_AUDIO && /* do not overwrite codec type */