[FFmpeg-devel] [PATCH 9/9] avcodec/libxevd: Fix "if (ret = ff_foo() < 0)" precedence problem
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Feb 27 21:58:37 EET 2024
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavcodec/libxevd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c
index f78606291c..f15c2583a1 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,
--
2.40.1
More information about the ffmpeg-devel
mailing list