mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/vc1dec: Disable error concealment for *IMAGE
The existing error concealment makes no sense for the image formats, they
use transformed source images which is different from keyframe + MC+difference
for which the error concealment is designed.
Of course feel free to re-enable this if you have a case where it works and
improves vissual results
Fixes: Timeout
Fixes: 36234/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-6300306743885824
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 643b2d49bf
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
966ade1dab
commit
36a6e6980e
@ -1073,7 +1073,9 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto err;
|
||||
}
|
||||
if (!v->field_mode)
|
||||
if ( !v->field_mode
|
||||
&& avctx->codec_id != AV_CODEC_ID_WMV3IMAGE
|
||||
&& avctx->codec_id != AV_CODEC_ID_VC1IMAGE)
|
||||
ff_er_frame_end(&s->er);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user