[Libav-user] Cleaning AVFrame properly

Venkateswaran.S venketeswaran2015 at gmail.com
Mon Apr 1 11:42:18 EEST 2019


Hi all,

I'm creating AVFrame object using av_frame_alloc() function and clearing it
using av_frame_free(&frame) which internally calls av_frame_unref(), but
it's not cleaning the memory properly. Heap size of my app grows
exponentially in run time.

As far as I know, av_frame_alloc() calls av_freep() which calls av_free()
to free the dynamic memory. Memory gets cleaned, If I use
av_free(frame->data[0]) directly instead of av_frame_free(&free)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20190401/66310dcf/attachment.html>


More information about the Libav-user mailing list