Re: [FFmpeg-devel] [PATCH] Patch for memory optimization with QuickTime/MP4

2019-12-02 Thread Jörg Beckmann
You cannot discard whatever is possible AND also try to seek. If you want to seek, you must not use this option. Even if I did not manage to create an example where switch root was called while reading from a file, I'm not sure that it is really impossible. And if switch root is called and the o

Re: [FFmpeg-devel] [PATCH] Patch for memory optimization with QuickTime/MP4

2019-12-02 Thread Carl Eugen Hoyos
Am Mo., 2. Dez. 2019 um 10:05 Uhr schrieb Jörg Beckmann : > > Hi, > > this patch invents a new option "discard_fragments" for the MP4/Quicktime/MOV > decoder. If the option is not set, nothing changes at all. If it is set, old > fragments are discarded as far as possible on each call to switch_ro

[FFmpeg-devel] [PATCH] Patch for memory optimization with QuickTime/MP4

2019-12-02 Thread Jörg Beckmann
Hi, this patch invents a new option "discard_fragments" for the MP4/Quicktime/MOV decoder. If the option is not set, nothing changes at all. If it is set, old fragments are discarded as far as possible on each call to switch_root. For pure audio streams, the memory usage is now constant. For vi