1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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

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)