summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-03-11 20:18:54 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-03-16 16:16:05 +0100
commitbbc8f3d20e09ab238e345a02ed983434d2efe633 (patch)
treee664e68657eaebddaea5bea7789c14d8dc91ae68 /libavfilter
parent0c6105dde0c42bc64c93e7e7fbf286869c0bffa2 (diff)
downloadffmpeg-streaming-bbc8f3d20e09ab238e345a02ed983434d2efe633.zip
ffmpeg-streaming-bbc8f3d20e09ab238e345a02ed983434d2efe633.tar.gz
lavf/vf_framerate: Fix frame leak when increasing framerate.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_framerate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_framerate.c b/libavfilter/vf_framerate.c
index 237a487..b4a74f7 100644
--- a/libavfilter/vf_framerate.c
+++ b/libavfilter/vf_framerate.c
@@ -526,7 +526,7 @@ static av_cold void uninit(AVFilterContext *ctx)
FrameRateContext *s = ctx->priv;
int i;
- for (i = s->frst + 1; i < s->last; i++) {
+ for (i = s->frst; i < s->last; i++) {
if (s->srce[i] && (s->srce[i] != s->srce[i + 1]))
av_frame_free(&s->srce[i]);
}
OpenPOWER on IntegriCloud