changeset 22990:a76748e71a18

Ignore mp4a audio tag, it is meaningless since we get it for all mp4 files regardless of actual audio codec.
author reimar
date Mon, 16 Apr 2007 20:08:29 +0000
parents 682e1d6726f4
children 59671a52cc82
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Mon Apr 16 13:54:43 2007 +0000
+++ b/libmpdemux/demux_lavf.c	Mon Apr 16 20:08:29 2007 +0000
@@ -309,6 +309,9 @@
                 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;