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

Avoid an assert, since now the function supports error code return.
This commit is contained in:
Stefano Sabatini 2012-10-15 09:21:15 +02:00
parent 83938c3d4c
commit c2428ada71
1 changed files with 1 additions and 2 deletions

View File

@ -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)