Browse Source

detect MS wav codecs

fixes detection of audio codec though not playback of surge-2-16-L-ms11.mov

Originally committed as revision 9885 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
bca7db3530
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/mov.c

+ 3
- 0
libavformat/mov.c View File

@@ -603,6 +603,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)

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 */


Loading…
Cancel
Save