Browse Source

ffv1enc: Fix memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
bd63f8f657
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/ffv1enc.c

+ 1
- 0
libavcodec/ffv1enc.c View File

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



Loading…
Cancel
Save