Mercurial > mplayer.hg
changeset 29551:19fa7aedb519
Rename mp_wav_override_tag* as mp_codecid_override_tag* to reflect that
it now can be used for both audio and video.
author | cehoyos |
---|---|
date | Sun, 30 Aug 2009 23:01:36 +0000 |
parents | 0105eab3f1a1 |
children | 7f9aa8546db3 |
files | libmpdemux/demux_lavf.c libmpdemux/mp_taglists.c libmpdemux/mp_taglists.h |
diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Sun Aug 30 22:55:21 2009 +0000 +++ b/libmpdemux/demux_lavf.c Sun Aug 30 23:01:36 2009 +0000 @@ -221,7 +221,8 @@ AVStream *st= avfc->streams[i]; AVCodecContext *codec= st->codec; AVMetadataTag *lang = av_metadata_get(st->metadata, "language", NULL, 0); - int g, override_tag = av_codec_get_tag(mp_wav_override_taglists, codec->codec_id); + int g, override_tag = av_codec_get_tag(mp_codecid_override_taglists, + codec->codec_id); // For some formats (like PCM) always trust CODEC_ID_* more than codec_tag if (override_tag) codec->codec_tag = override_tag;
--- a/libmpdemux/mp_taglists.c Sun Aug 30 22:55:21 2009 +0000 +++ b/libmpdemux/mp_taglists.c Sun Aug 30 23:01:36 2009 +0000 @@ -54,7 +54,7 @@ const struct AVCodecTag *mp_wav_taglists[] = {ff_codec_wav_tags, mp_wav_tags, 0}; -static const AVCodecTag mp_wav_override_tags[] = { +static const AVCodecTag mp_codecid_override_tags[] = { { CODEC_ID_PCM_S8, MKTAG('t', 'w', 'o', 's')}, { CODEC_ID_PCM_U8, 1}, { CODEC_ID_PCM_S16BE, MKTAG('t', 'w', 'o', 's')}, @@ -71,7 +71,8 @@ { 0, 0 }, }; -const struct AVCodecTag *mp_wav_override_taglists[] = {mp_wav_override_tags, 0}; +const struct AVCodecTag *mp_codecid_override_taglists[] = + {mp_codecid_override_tags, 0}; static const AVCodecTag mp_bmp_tags[] = { { CODEC_ID_AMV, MKTAG('A', 'M', 'V', 'V')},
--- a/libmpdemux/mp_taglists.h Sun Aug 30 22:55:21 2009 +0000 +++ b/libmpdemux/mp_taglists.h Sun Aug 30 23:01:36 2009 +0000 @@ -21,7 +21,7 @@ extern const struct AVCodecTag *mp_wav_taglists[]; -extern const struct AVCodecTag *mp_wav_override_taglists[]; +extern const struct AVCodecTag *mp_codecid_override_taglists[]; extern const struct AVCodecTag *mp_bmp_taglists[];