On 2013-06-08 13:01, Sebastien Zwickert wrote:
From: Xidorn Quan <[email protected]>

This patch fixes a leak of buffer when seeking occurs.

buffer leak

--- a/libavcodec/vda_h264.c
+++ b/libavcodec/vda_h264.c
@@ -123,6 +136,36 @@ static int vda_h264_end_frame(AVCodecContext *avctx)
+    /* VDA workaround to release properly each core video buffers:

Either "all buffer_s_" or "each buffer_".

+     * we need to create an extra av buffer with a custom freeing callback. 
This extra buffer

av_buffer

+     * should not be ref counted to avoid potential memory leaks. That's why 
we put it

reference-counted

+     * after the first free entry of AVFrame.buf to not ref this extra buffer 
in

reference

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to