[SCM] libav/experimental: xbm: use av_frame_free on close

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:02:28 UTC 2014


The following commit has been merged in the experimental branch:
commit 792e4c21f212979f0e29bcdf107cb6b4f51645a4
Author: Vittorio Giovara <vittorio.giovara at gmail.com>
Date:   Mon Mar 17 01:20:53 2014 +0100

    xbm: use av_frame_free on close

diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c
index d6657dc..517e569 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;
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list