Re: [FFmpeg-devel] mpegaudio_parser question

2018-06-18 Thread Karsten Otto
I gathered as much, and indeed that is happening in libavformat/utils.c (seek_frame_internal with AVFMT_NOGENSEARCH in my case). But the mp3 parser keeps leading data even if freshly created. I was wondering why, maybe some codecs need it. Anyway, my question remains: What is a format supposed t

Re: [FFmpeg-devel] mpegaudio_parser question

2018-06-17 Thread Ronald S. Bultje
Hi Karsten, I believe that the parsers are seek-unaware, so you're expected to delete and recreate (or reinit) the parsers after each seek. Ronald On Sun, Jun 17, 2018 at 10:56 AM, Karsten Otto wrote: > Hi list, > > I have a question about mpegaudio_parser. I see that it keeps any packet > dat

[FFmpeg-devel] mpegaudio_parser question

2018-06-17 Thread Karsten Otto
Hi list, I have a question about mpegaudio_parser. I see that it keeps any packet data before a frame header, instead of discarding it. This makes sense, because it usually can combine this data with the leftovers from a previous packet to complete a frame. But the parser also does this when ju