[Libav-user] memory leak when I-frame is delayed

Алексей Дорофеев leshadorofeev at gmail.com
Thu Oct 10 17:36:48 CEST 2013


I have my own simple h.264 test. Test reads YUV frames from file, encodes
to h.264 frames and after decodes. Test is leaking too. I've used valgring
and massif to get memory snapshots in runtime. There are two points where
memory is leaking:

->30.61% (13,777,514B) 0x1019308: av_mallocz (mem.c:93)
| ->21.78% (9,804,266B) 0xEAF177: av_fast_padded_malloc (utils.c:87)
| | ->21.78% (9,804,266B) 0xBA9845: ff_h264_decode_nal (h264.c:500)
| |   ->21.78% (9,804,266B) 0xBC2780: decode_nal_units (h264.c:4463)
| |     ->21.78% (9,804,266B) 0xBC3E22: decode_frame (h264.c:4811)
| |       ->21.78% (9,804,266B) 0xE1415A: frame_worker_thread
(pthread.c:390)
| |         ->21.78% (9,804,266B) 0x86158C8: start_thread
(pthread_create.c:300)
| |           ->21.78% (9,804,266B) 0x90A686B: clone (clone.S:112)
| |
| ->03.71% (1,668,992B) in 29 places, all below massif's threshold (01.00%)
| |
| ->03.62% (1,631,488B) 0xBAB842: ff_h264_frame_start (h264.c:291)
| | ->03.62% (1,631,488B) 0xBC1026: decode_slice_header (h264.c:3494)
| |   ->03.62% (1,631,488B) 0xBC2CDE: decode_nal_units (h264.c:4563)
| |     ->03.62% (1,631,488B) 0xBC3E22: decode_frame (h264.c:4811)
| |       ->03.62% (1,631,488B) 0xE1415A: frame_worker_thread
(pthread.c:390)
| |         ->03.62% (1,631,488B) 0x86158C8: start_thread
(pthread_create.c:300)
| |           ->03.62% (1,631,488B) 0x90A686B: clone (clone.S:112)

Alexey Dorofeev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131010/aef8816b/attachment.html>


More information about the Libav-user mailing list