On 2014-03-22 14:38:53 +0100, Vittorio Giovara wrote: > On Tuesday, March 18, 2014, Luca Barbato <[email protected]> wrote: > > > On 12/03/14 18:27, Vittorio Giovara wrote: > > > --- > > > libavfilter/vf_scale.c | 20 +++++++------------- > > > 1 file changed, 7 insertions(+), 13 deletions(-) > > > > I'm not sure we want to have a scaler for same-pixel-same-size frames. > > > > This function will allocate a different context (and release the old > one) only if the parameters change.
The point Luca was trying to make is that you're removing: | - if (inlink->w == outlink->w && inlink->h == outlink->h && | - inlink->format == outlink->format) | - scale->sws = NULL; which avoids scaling if input and output format and size are identical. Janne _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
