aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ffv1enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-11 21:03:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-11 21:03:54 +0200
commitbd63f8f6574da2db3d4539038cb99927f3ada8c3 (patch)
treec0320243f7bbe09e849fb44cd176f561d403d83a /libavcodec/ffv1enc.c
parent19411d32d409b9e9f05670a7bb2f76d6d7ef82db (diff)
downloadffmpeg-bd63f8f6574da2db3d4539038cb99927f3ada8c3.tar.gz
ffv1enc: Fix memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-rw-r--r--libavcodec/ffv1enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index ffc8230105..edddcb2d9f 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -1015,6 +1015,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
ff_init_range_encoder(c, pkt->data, pkt->size);
ff_build_rac_states(c, 0.05 * (1LL << 32), 256 - 8);
+ av_frame_unref(p);
av_frame_ref(p, pict);
p->pict_type = AV_PICTURE_TYPE_I;