Browse Source

eamad: release the reference frame on video size changes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6c1fb3e763)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8.6
Laurent Aimar Michael Niedermayer 14 years ago
parent
commit
5415c488f9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/eamad.c

+ 2
- 0
libavcodec/eamad.c View File

@@ -273,6 +273,8 @@ static int decode_frame(AVCodecContext *avctx,
avcodec_set_dimensions(avctx, s->width, s->height);
if (t->frame.data[0])
avctx->release_buffer(avctx, &t->frame);
if (t->last_frame.data[0])
avctx->release_buffer(avctx, &t->last_frame);
}

t->frame.reference = 1;


Loading…
Cancel
Save