avcodec/libxevd: Fix "if (ret = ff_foo() < 0)" precedence problem

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-02-27 20:41:57 +01:00
parent 0c92c8e6e3
commit fbf1e51352
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,8 @@ static int libxevd_image_copy(struct AVCodecContext *avctx, XEVD_IMGB *imgb, str
}
}
if (ret = ff_get_buffer(avctx, frame, 0) < 0)
ret = ff_get_buffer(avctx, frame, 0);
if (ret < 0)
return ret;
av_image_copy(frame->data, frame->linesize, (const uint8_t **)imgb->a,