changeset 2298:4f946c9ae9b3 libavformat

detect MS wav codecs fixes detection of audio codec though not playback of surge-2-16-L-ms11.mov
author michael
date Sat, 04 Aug 2007 00:22:28 +0000
parents acdc747b9ff3
children fe59c768ecf7
files mov.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 */