Commit e219ed93 authored by stefano's avatar stefano

Make the error message issued in case of invalid codec tag more

informative.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23423 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e1409d92
...@@ -2656,9 +2656,11 @@ int av_write_header(AVFormatContext *s) ...@@ -2656,9 +2656,11 @@ int av_write_header(AVFormatContext *s)
if(s->oformat->codec_tag){ if(s->oformat->codec_tag){
if(st->codec->codec_tag){ if(st->codec->codec_tag){
if (!validate_codec_tag(s, st)) { if (!validate_codec_tag(s, st)) {
char tagbuf[32];
av_get_codec_tag_string(tagbuf, sizeof(tagbuf), st->codec->codec_tag);
av_log(s, AV_LOG_ERROR, av_log(s, AV_LOG_ERROR,
"Tag 0x%08x incompatible with output codec\n", "Tag %s/0x%08x incompatible with output codec '%s'\n",
st->codec->codec_tag); tagbuf, st->codec->codec_tag, st->codec->codec->name);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
}else }else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment