[FFmpeg-devel] [PATCH] lavf/mux: try to improve error feedback in case of incompatible tag

Stefano Sabatini stefasab at gmail.com
Wed Jun 26 17:41:28 CEST 2013


---
 libavformat/mux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/mux.c b/libavformat/mux.c
index 82b5a8e..7099d98 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -305,8 +305,8 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options)
                     av_get_codec_tag_string(tagbuf, sizeof(tagbuf), codec->codec_tag);
                     av_get_codec_tag_string(tagbuf2, sizeof(tagbuf2), av_codec_get_tag(s->oformat->codec_tag, codec->codec_id));
                     av_log(s, AV_LOG_ERROR,
-                           "Tag %s/0x%08x incompatible with output codec id '%d' (%s)\n",
-                           tagbuf, codec->codec_tag, codec->codec_id, tagbuf2);
+                           "Tag %s/0x%08x incompatible with output codec %s with id %d, correct tag is %s\n",
+                           tagbuf, codec->codec_tag, avcodec_get_name(codec->codec_id), codec->codec_id, tagbuf2);
                     ret = AVERROR_INVALIDDATA;
                     goto fail;
                 }
-- 
1.8.1.2



More information about the ffmpeg-devel mailing list