[Libav-user] Possible memory leak in avformat_find_stream_info, how to deal with it?
Hristo Ivanov
hivanov.ffmailing at gmail.com
Tue Feb 26 13:48:23 EET 2019
Hi Wodzu.
>From the ffmeg docs about avformat_find_stream_info():
- Read packets of a media file to get stream information.
- The logical file position is not changed by this function; examined
packets may be buffered for later processing.
* Read packets of a media file to get stream information.
I can see you are using a cusmom io_context, maybe the leak is there.
* The logical file position is not changed by this function; examined
packets may be buffered for later processing.
I haven't checked, but the expected thing for avformat_close_input() would
be to correctly release the memory of the buffered packets, even if not
read.
Hope this is helpful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20190226/da894a99/attachment.html>
More information about the Libav-user
mailing list