Доброго времени суток.
Помогите разобраться. По мотивам треда было написано нечто, и оно подтекает(?).
↪ valgrind --leak-check=yes ./cv vid
...
==28734==
==28734== 160,361 (240 direct, 160,121 indirect) bytes in 10 blocks are definitely lost in loss record 280 of 280
==28734== at 0x4C2FFC6: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==28734== by 0x4C300D1: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==28734== by 0x54FF06F: av_malloc (in /usr/lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54.31.100)
==28734== by 0x54FF37D: av_mallocz (in /usr/lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54.31.100)
==28734== by 0x54ECADE: av_buffer_create (in /usr/lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54.31.100)
==28734== by 0x54ED053: av_buffer_realloc (in /usr/lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54.31.100)
==28734== by 0x58A4BF6: av_new_packet (in /usr/lib/x86_64-linux-gnu/libavcodec-ffmpeg.so.56.60.100)
==28734== by 0x6C1A2C4: ??? (in /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56.40.101)
==28734== by 0x6C1F809: ??? (in /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56.40.101)
==28734== by 0x6C20098: ??? (in /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56.40.101)
==28734== by 0x6CD7750: ??? (in /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56.40.101)
==28734== by 0x6CD8360: ??? (in /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56.40.101)
==28734==
==28734== LEAK SUMMARY:
==28734== definitely lost: 240 bytes in 10 blocks
==28734== indirectly lost: 160,121 bytes in 20 blocks
==28734== possibly lost: 2,696 bytes in 21 blocks
==28734== still reachable: 229,938 bytes in 923 blocks
==28734== of which reachable via heuristic:
==28734== newarray : 3,096 bytes in 19 blocks
==28734== suppressed: 0 bytes in 0 blocks
...