# HG changeset patch # User stefano # Date 1275476093 0 # Node ID 72faba69143f19b272deb2c9d53efcfa525436b4 # Parent ac73cfb210dccd5d4b7bfc67c84dbdb35c94227b Make the error message issued in case of invalid codec tag more informative. diff -r ac73cfb210dc -r 72faba69143f utils.c --- a/utils.c Tue Jun 01 20:00:26 2010 +0000 +++ b/utils.c Wed Jun 02 10:54:53 2010 +0000 @@ -2656,9 +2656,11 @@ if(s->oformat->codec_tag){ if(st->codec->codec_tag){ 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, - "Tag 0x%08x incompatible with output codec\n", - st->codec->codec_tag); + "Tag %s/0x%08x incompatible with output codec '%s'\n", + tagbuf, st->codec->codec_tag, st->codec->codec->name); return AVERROR_INVALIDDATA; } }else