summaryrefslogtreecommitdiff
path: root/libavcodec/v210dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/v210dec.c')
-rw-r--r--libavcodec/v210dec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
index 0d71b5004f..08c954d88e 100644
--- a/libavcodec/v210dec.c
+++ b/libavcodec/v210dec.c
@@ -114,6 +114,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
static av_cold int decode_close(AVCodecContext *avctx)
{
+ AVFrame *pic = avctx->coded_frame;
+ if (pic->data[0])
+ avctx->release_buffer(avctx, pic);
av_freep(&avctx->coded_frame);
return 0;