hi friends
i found memory leak when i am using avformat_new_stream , below is valgrind log
==12990== 1,599 (1,592 direct, 7 indirect) bytes in 1 blocks are definitely lost in loss record 19 of 21 ==12990== at 0x40294EB: memalign (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==12990== by 0x4A7A71C: av_mallocz (mem.c:223) ==12990== by 0x463153D: avcodec_get_context_defaults3 (options.c:129) ==12990== by 0x4631652: avcodec_alloc_context3 (options.c:157) ==12990== by 0x4975548: avformat_new_stream (utils.c:3258) ==12990== by 0x4AA4F3D: add_stream (muxing.c:32) ==12990== by 0x4AA51E9: init (muxing.c:121) ==12990== by 0x80487EE: main (test_app.c:52) thanks anshul _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user