mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-08 07:05:33 +01:00
avcodec/mpeg4videodec: Remove use of FF_PROFILE_MPEG4_SIMPLE_STUDIO as indicator of studio profile
The profile field is changed by code inside and outside the decoder, its not a reliable indicator of the internal codec state. Maintaining it consistency with studio_profile is messy. Its easier to just avoid it and use only studio_profile Fixes: assertion failure Fixes: ffmpeg_crash_9.avi Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -3244,7 +3244,6 @@ end:
|
||||
s->avctx->has_b_frames = !s->low_delay;
|
||||
|
||||
if (s->studio_profile) {
|
||||
av_assert0(s->avctx->profile == FF_PROFILE_MPEG4_SIMPLE_STUDIO);
|
||||
if (!s->avctx->bits_per_raw_sample) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Missing VOL header\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
Reference in New Issue
Block a user