[FFmpeg-cvslog] r9885 - trunk/libavformat/mov.c

michael subversion
Sat Aug 4 02:22:29 CEST 2007


Author: michael
Date: Sat Aug  4 02:22:28 2007
New Revision: 9885

Log:
detect MS wav codecs
fixes detection of audio codec though not playback of surge-2-16-L-ms11.mov


Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Sat Aug  4 02:22:28 2007
@@ -603,6 +603,9 @@ static int mov_read_stsd(MOVContext *c, 
 
         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 */




More information about the ffmpeg-cvslog mailing list