mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/libxevd: Fix "if (ret = ff_foo() < 0)" precedence problem
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
0c92c8e6e3
commit
fbf1e51352
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user