Fix logic error
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 2m12s
Build system / Build (pull_request) Successful in 35m32s

This commit is contained in:
2025-12-19 09:52:49 +08:00
parent 7b0867a6cf
commit e128a90e62

View File

@@ -142,7 +142,7 @@ static int decode_frame(AVCodecContext *avctx,
if (av_image_check_size(s->width, s->height, 0, avctx) < 0)
return -1;
if (s->width != avctx->width && s->height != avctx->height) {
if (s->width != avctx->width || s->height != avctx->height) {
ret = ff_set_dimensions(avctx, s->width, s->height);
if (ret < 0)
return ret;