# HG changeset patch # User bcoudurier # Date 1281573319 0 # Node ID 8b5aedaf23b2dded4e5d71a0f55a038ace8ded29 # Parent d308f031089240a784a123292ad2c34c1f90fe76 Fix segv when stream copy and validate_tag fails, st->codec->codec is not set diff -r d308f0310892 -r 8b5aedaf23b2 utils.c --- a/utils.c Wed Aug 11 23:45:05 2010 +0000 +++ b/utils.c Thu Aug 12 00:35:19 2010 +0000 @@ -2699,8 +2699,8 @@ char tagbuf[32]; av_get_codec_tag_string(tagbuf, sizeof(tagbuf), st->codec->codec_tag); av_log(s, AV_LOG_ERROR, - "Tag %s/0x%08x incompatible with output codec '%s'\n", - tagbuf, st->codec->codec_tag, st->codec->codec->name); + "Tag %s/0x%08x incompatible with output codec id '%d'\n", + tagbuf, st->codec->codec_tag, st->codec->codec_id); return AVERROR_INVALIDDATA; } }else