On Jun 8, 2013, at 2:48 PM, Diego Biurrun <[email protected]> wrote: > 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
Fixed. Thanks! _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
