diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-27 20:41:57 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-01 01:34:26 +0100 |
commit | fbf1e5135298b7c8e8f6ca2680b41b4af9ed4e4f (patch) | |
tree | 2accbaaebb1a827edf0279b2a7d4aefc0d670088 | |
parent | 0c92c8e6e37cb75df616303c8f3cf6d321431a0e (diff) | |
download | ffmpeg-fbf1e5135298b7c8e8f6ca2680b41b4af9ed4e4f.tar.gz |
avcodec/libxevd: Fix "if (ret = ff_foo() < 0)" precedence problem
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/libxevd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |