vf_scale: don't leak SWS context.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
pull/2/head
Michael Niedermayer 14 years ago committed by Anton Khirnov
parent fa19c5c20e
commit 52982dbe47
  1. 2
      libavfilter/vf_scale.c

@ -206,6 +206,8 @@ static int config_props(AVFilterLink *outlink)
scale->input_is_pal = av_pix_fmt_descriptors[inlink->format].flags & PIX_FMT_PAL;
if (scale->sws)
sws_freeContext(scale->sws);
scale->sws = sws_getContext(inlink ->w, inlink ->h, inlink ->format,
outlink->w, outlink->h, outlink->format,
scale->flags, NULL, NULL, NULL);

Loading…
Cancel
Save