X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_detelecine.c;h=0199214c3ee95f6caa17a71a3f336f13562efa97;hb=e15371061d23457554d241a80dc471515ac13ad4;hp=0d1e2f2ffbb3a3e22c53243dcf6107766aa7246c;hpb=b065c71e9d2ad3c5d65f924a4003e3a7ee595417;p=ffmpeg diff --git a/libavfilter/vf_detelecine.c b/libavfilter/vf_detelecine.c index 0d1e2f2ffbb..0199214c3ee 100644 --- a/libavfilter/vf_detelecine.c +++ b/libavfilter/vf_detelecine.c @@ -206,6 +206,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref) if (s->nskip_fields >= 2) { s->nskip_fields -= 2; + av_frame_free(&inpicref); return 0; } else if (s->nskip_fields >= 1) { for (i = 0; i < s->nb_planes; i++) { @@ -216,6 +217,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref) } s->occupied = 1; s->nskip_fields--; + av_frame_free(&inpicref); return 0; }