Commit 7e5c5fa5 authored by Nicolas George's avatar Nicolas George

lavfi/vf_overlay: check that filter_frame does not return EAGAIN.

EAGAIN is used internally in the code; it currently does not make
sense as a return code from the next filter.

Should fix CID966655.
parent a7454852
......@@ -473,6 +473,7 @@ static int try_filter_frame(AVFilterContext *ctx, AVFilterBufferRef *mainpic)
if (over->overpicref)
blend_image(ctx, mainpic, over->overpicref, over->x, over->y);
ret = ff_filter_frame(ctx->outputs[0], mainpic);
av_assert1(ret != AVERROR(EAGAIN));
over->frame_requested = 0;
return ret;
}
......
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