# HG changeset patch # User voroshil # Date 1191425222 0 # Node ID f6cf2c01315d1e1a780f003c4ed9572d4fa1a083 # Parent 0dd1b48af82c0722c8416df08fe7562d7ca7371c Format 0x01 cannot be used with "AMV IMA ADPCM", because it belongs to normal PCM. Make lavf demuxer set codec tag to AMVA in this case. No need to use -ac +ffadpcmimaamva anymore. diff -r 0dd1b48af82c -r f6cf2c01315d libmpdemux/demux_lavf.c --- a/libmpdemux/demux_lavf.c Wed Oct 03 14:13:11 2007 +0000 +++ b/libmpdemux/demux_lavf.c Wed Oct 03 15:27:02 2007 +0000 @@ -330,6 +330,8 @@ // mp4a tag is used for all mp4 files no matter what they actually contain if(codec->codec_tag == MKTAG('m', 'p', '4', 'a')) codec->codec_tag= 0; + if(codec->codec_id == CODEC_ID_ADPCM_IMA_AMV) + codec->codec_tag= MKTAG('A','M','V','A'); if(!codec->codec_tag) codec->codec_tag= av_codec_get_tag(mp_wav_taglists, codec->codec_id); wf->wFormatTag= codec->codec_tag;