Skip to content

Commit 8c2ea30

Browse files
committed
avcodec/pictordec: Fix logic error
Fixes: 559/clusterfuzz-testcase-6424225917173760 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
1 parent dface53 commit 8c2ea30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libavcodec/pictordec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static int decode_frame(AVCodecContext *avctx,
142142

143143
if (av_image_check_size(s->width, s->height, 0, avctx) < 0)
144144
return -1;
145-
if (s->width != avctx->width && s->height != avctx->height) {
145+
if (s->width != avctx->width || s->height != avctx->height) {
146146
ret = ff_set_dimensions(avctx, s->width, s->height);
147147
if (ret < 0)
148148
return ret;

0 commit comments

Comments
 (0)