From 5e00b162bb7e99a0154ab63fff57bd944d0eefe4 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 16 Apr 2007 20:08:29 +0000 Subject: [PATCH] Ignore mp4a audio tag, it is meaningless since we get it for all mp4 files regardless of actual audio codec. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23008 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_lavf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c index e30f14247a..3cc0a7075f 100644 --- a/libmpdemux/demux_lavf.c +++ b/libmpdemux/demux_lavf.c @@ -309,6 +309,9 @@ static demuxer_t* demux_open_lavf(demuxer_t *demuxer){ break; priv->astreams[priv->audio_streams] = i; priv->audio_streams++; + // 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_tag) codec->codec_tag= av_codec_get_tag(mp_wav_taglists, codec->codec_id); wf->wFormatTag= codec->codec_tag;