[MPlayer-cvslog] r34378 - trunk/libmpdemux/mp_taglists.c
reimar
subversion at mplayerhq.hu
Sat Dec 3 09:03:12 CET 2011
Author: reimar
Date: Sat Dec 3 09:03:12 2011
New Revision: 34378
Log:
Fix mp_tag2codec_id to take all AVI tags into account again.
Fixes bug #2025.
Modified:
trunk/libmpdemux/mp_taglists.c
Modified: trunk/libmpdemux/mp_taglists.c
==============================================================================
--- trunk/libmpdemux/mp_taglists.c Sat Dec 3 01:30:59 2011 (r34377)
+++ trunk/libmpdemux/mp_taglists.c Sat Dec 3 09:03:12 2011 (r34378)
@@ -149,7 +149,16 @@ static const struct AVCodecTag * const m
enum CodecID mp_tag2codec_id(uint32_t tag, int audio)
{
- return av_codec_get_id(audio ? mp_wav_taglists : mp_bmp_taglists, tag);
+ AVOutputFormat *avi_format;
+ enum CodecID id = av_codec_get_id(audio ? mp_wav_taglists : mp_bmp_taglists, tag);
+ if (id != CODEC_ID_NONE)
+ return id;
+ avi_format = av_guess_format("avi", NULL, NULL);
+ if (!avi_format) {
+ mp_msg(MSGT_DEMUXER, MSGL_FATAL, "MPlayer cannot work properly without AVI muxer in libavformat!\n");
+ return 0;
+ }
+ return av_codec_get_id(avi_format->codec_tag, tag);
}
uint32_t mp_codec_id2tag(enum CodecID codec_id, uint32_t old_tag, int audio)
More information about the MPlayer-cvslog
mailing list