[Libav-user] Possible memory leak with avcodec_decode_video2
David Tsulaia
d_tsulaia at cu.edu.ge
Sun Dec 27 18:47:44 CET 2015
Hello everyone,
I know there are millions of threads/mails about this, but none have
similar cases.
OS - Ubuntu 14.04.2 LTS and all libav devel pkges are
6:9.18-0ubuntu0.14.04.1+fdkaac version.
ffmpeg version N-75912-g624057d Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --enable-libx264 --enable-gpl
libavutil 55. 3.100 / 55. 3.100
libavcodec 57. 5.100 / 57. 5.100
libavformat 57. 3.100 / 57. 3.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 11.100 / 6. 11.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Sample code:
http://pastebin.com/kbRmrjpe
I tried both av_frame_unref and av_frame_free after decoding frame and in
case of free I call av_frame_alloc() again;
No matter what I try call to avcodec_decode_video2 results in memory leak.
One distinguishing factor from normal cases is that the input stream is
quite large.
Any help or ideas are appreciated,
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20151227/0666656e/attachment.html>
More information about the Libav-user
mailing list