diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-01-02 15:34:41 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-01-02 15:34:41 +0100 |
commit | af5b6b45b4d8103a6daaa029beb64f7f6e521792 (patch) | |
tree | 040fc9049889fe01a4a268422ab8bd536c3a5acf /libavfilter/vf_detelecine.c | |
parent | 1dcb5b7dca2bbaa7e2dfa062c0941f5509c238f4 (diff) | |
download | ffmpeg-af5b6b45b4d8103a6daaa029beb64f7f6e521792.tar.gz |
avfilter/vf_detelecine: fix obvious frame memory leaks
Diffstat (limited to 'libavfilter/vf_detelecine.c')
-rw-r--r-- | libavfilter/vf_detelecine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_detelecine.c b/libavfilter/vf_detelecine.c index 0d1e2f2ffb..0199214c3e 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; } |