[Libav-user] Possible memory leak in avformat_find_stream_info, how to deal with it?

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Mar 11 12:41:57 EET 2019


2019-02-26 10:57 GMT+01:00, Wodzu <brucedickinson at wp.pl>:

> I am trying to transmux (remux?) from raw h264 to mp4. My
> input is in a stream, output goes to a file. Everything works,
> but I've noticed that if I repeat my function multiple times,
> allocation of memory grows and it is not entirely released back.

Use valgrind (or another memory debugger) to find out where
the leaked memory is actually allocated.

It is normal for a call to avformat_find_stream_info() to allocate
memory, but it shouldn't leak.

Carl Eugen


More information about the Libav-user mailing list