[FFmpeg-cvslog] libx264: free x4->sei

Michael Niedermayer git at videolan.org
Mon Sep 26 19:01:43 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Sep 26 18:53:12 2011 +0200| [d5a3635b2cb89c1d31b68bcb049c47c8d59e99fb] | committer: Michael Niedermayer

libx264: free x4->sei

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

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

 libavcodec/libx264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index a089206..219944f 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -103,7 +103,7 @@ static int encode_nals(AVCodecContext *ctx, uint8_t *buf, int size,
         memcpy(p, x4->sei, x4->sei_size);
         p += x4->sei_size;
         x4->sei_size = 0;
-        // why is x4->sei not freed?
+        av_freep(&x4->sei);
     }
 
     for (i = 0; i < nnal; i++){



More information about the ffmpeg-cvslog mailing list