diff utils.c @ 6370:8b5aedaf23b2 libavformat

Fix segv when stream copy and validate_tag fails, st->codec->codec is not set
author bcoudurier
date Thu, 12 Aug 2010 00:35:19 +0000
parents 34df2b405550
children 2d51ca7714c3
line wrap: on
line diff
--- 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