summaryrefslogtreecommitdiff
path: root/libavcodec/xbmenc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-03-17 01:20:53 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-03-27 23:57:51 +0100
commit792e4c21f212979f0e29bcdf107cb6b4f51645a4 (patch)
treeae8228afdf54a9b35965e417cfe820deb3c80a9f /libavcodec/xbmenc.c
parenta7a5e3850ecd94e726ad2272295b9e6c91841cf8 (diff)
xbm: use av_frame_free on close
Diffstat (limited to 'libavcodec/xbmenc.c')
-rw-r--r--libavcodec/xbmenc.c2
1 files changed, 1 insertions, 1 deletions
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;
}