Michael, in the issue tracker, you wrote, that my code looks invalid and broken in several ways. > You for example do not initialize AVPackets properly.
Could you explain me my errors? I think this will be very useful not only for me and will save you a lot of time in the future, as could save others libav users from my mistakes. I was adhering to the Drander's and M. Boehme's tutorials, but the latter is ancient and uses currently deprecated functions (av_read_packet). ffmpeg.c and Dranger's tutorial don't initialize AVPackets at all. And I couldn't find any other documentation and code samples. The call to av_init_packet has come from my attempts to catch the memory leak. > The leak you describe does not occur with ffmpeg and the test file you uploaded. > ffmpeg does not detect ac3 streams in the test file. Also ffmpeg does not show such leaks with files which do contain ac3 streams. Probably, the reason is that ffmpeg recognizes no more than 20 streams, and that sample contains 59 streams. I had to increase the constant in my local copy and wrote about that in the issue tracer (#431). The stream, I am working with, also contains the coded data (those provided by CNN and Quadriga, I don't remembed elementary PIDs right now). Could they confuse libav functions in my code and cause memory leaks? Thank you. Vladimir. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
