Commit fbf1e513 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avcodec/libxevd: Fix "if (ret = ff_foo() < 0)" precedence problem

Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 0c92c8e6
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment