From 792e4c21f212979f0e29bcdf107cb6b4f51645a4 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Mon, 17 Mar 2014 01:20:53 +0100 Subject: [PATCH] xbm: use av_frame_free on close --- libavcodec/xbmenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c index d6657dcd08..517e569a60 100644 --- a/libavcodec/xbmenc.c +++ b/libavcodec/xbmenc.c @@ -69,7 +69,7 @@ static int xbm_encode_frame(AVCodecContext *avctx, AVPacket *pkt, static av_cold int xbm_encode_close(AVCodecContext *avctx) { - av_freep(&avctx->coded_frame); + av_frame_free(&avctx->coded_frame); return 0; }