Commit bd63f8f6 authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1enc: Fix memleak

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 19411d32
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment