You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Fix segv when stream copy and validate_tag fails, st->codec->codec is not set
Originally committed as revision 24782 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -2699,8 +2699,8 @@ int av_write_header(AVFormatContext *s)
|
|||||||
char tagbuf[32];
|
char tagbuf[32];
|
||||||
av_get_codec_tag_string(tagbuf, sizeof(tagbuf), st->codec->codec_tag);
|
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 %s/0x%08x incompatible with output codec '%s'\n",
|
"Tag %s/0x%08x incompatible with output codec id '%d'\n",
|
||||||
tagbuf, st->codec->codec_tag, st->codec->codec->name);
|
tagbuf, st->codec->codec_tag, st->codec->codec_id);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
|
Reference in New Issue
Block a user