Revision bbd1c43f libavfilter/vf_scale.c

View differences:

libavfilter/vf_scale.c
144 144

  
145 145
    scale->input_is_pal = av_pix_fmt_descriptors[inlink->format].flags & PIX_FMT_PAL;
146 146

  
147
    if(scale->sws)
148
        sws_freeContext(scale->sws);
147 149
    scale->sws = sws_getContext(inlink ->w, inlink ->h, inlink ->format,
148 150
                                outlink->w, outlink->h, outlink->format,
149 151
                                scale->flags, NULL, NULL, NULL);

Also available in: Unified diff