Commit bbd1c43f authored by Michael Niedermayer's avatar Michael Niedermayer

Dont leak sws contexts.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2f9815dd
......@@ -144,6 +144,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);
......
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