[FFmpeg-cvslog] libavcodec/libx264: Use av_freep() avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Tue Nov 18 11:54:33 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 18 11:33:00 2014 +0100| [ade140eb733197b3c4cdc63485652169ed757d89] | committer: Michael Niedermayer

libavcodec/libx264: Use av_freep() avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ade140eb733197b3c4cdc63485652169ed757d89
---

 libavcodec/libx264.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 5952a0d..4da0ee0 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -305,7 +305,7 @@ static av_cold int X264_close(AVCodecContext *avctx)
     X264Context *x4 = avctx->priv_data;
 
     av_freep(&avctx->extradata);
-    av_free(x4->sei);
+    av_freep(&x4->sei);
 
     if (x4->enc)
         x264_encoder_close(x4->enc);



More information about the ffmpeg-cvslog mailing list