libx264: free x4->sei
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 26 Sep 2011 16:53:12 +0000 (18:53 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 26 Sep 2011 16:53:12 +0000 (18:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libx264.c

index a089206..219944f 100644 (file)
@@ -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++){