Browse Source

avfilter/vf_detelecine: fix obvious frame memory leaks

tags/n4.2
Paul B Mahol 6 years ago
parent
commit
af5b6b45b4
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavfilter/vf_detelecine.c

+ 2
- 0
libavfilter/vf_detelecine.c View File

@@ -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;
}



Loading…
Cancel
Save