diff mbox series

[FFmpeg-devel,9/9] avcodec/libxevd: Fix "if (ret = ff_foo() < 0)" precedence problem

Message ID AS8P250MB0744F50C96D6156EFDD01BFE8F592@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit fbf1e5135298b7c8e8f6ca2680b41b4af9ed4e4f
Headers show
Series [FFmpeg-devel,1/9] avcodec/libxevd: Remove FF_CODEC_CAP_SETS_PKT_DTS cap | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 27, 2024, 7:58 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/libxevd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

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,