From fbf1e5135298b7c8e8f6ca2680b41b4af9ed4e4f Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 27 Feb 2024 20:41:57 +0100 Subject: [PATCH] avcodec/libxevd: Fix "if (ret = ff_foo() < 0)" precedence problem Signed-off-by: Andreas Rheinhardt --- libavcodec/libxevd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c index 23ea22f792..c6c7327e65 100644 --- a/libavcodec/libxevd.c +++ b/libavcodec/libxevd.c @@ -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,