diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index 4ee97835a1..99387b5eed 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -180,6 +180,8 @@ static int decode_frame(AVCodecContext *avctx, } } + if (s->frame.data[0]) + avctx->release_buffer(avctx, &s->frame); f->pict_type = AV_PICTURE_TYPE_I; f->key_frame = 1; f->reference = 0;