changeset 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 d308f0310892
children 75e7dad45e44
files utils.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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