summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/fraps.c2
1 files changed, 2 insertions, 0 deletions
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;