[Libav-user] Cleaning AVFrame properly
Venkateswaran.S
venketeswaran2015 at gmail.com
Mon Apr 1 11:48:12 EEST 2019
Apologise for the typos.
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_free() 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(&frame)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20190401/d37f7c72/attachment.html>
More information about the Libav-user
mailing list