Commit c2428ada authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/scale: return error code in case of failed reconfiguration in start_frame()

Avoid an assert, since now the function supports error code return.
parent 83938c3d
......@@ -316,10 +316,9 @@ static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
link->dst->inputs[0]->h = picref->video->h;
if ((ret = config_props(outlink)) < 0)
av_assert0(0); //what to do here ?
return ret;
}
if (!scale->sws) {
outpicref = avfilter_ref_buffer(picref, ~0);
if (!outpicref)
......
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