Re: [FFmpeg-devel] [PATCH v5 3/3] aadec: improve seeking in mp3 content

2018-07-12 Thread Michael Niedermayer
On Wed, Jul 11, 2018 at 11:53:25PM +0200, Karsten Otto wrote: > MP3 frames may not be aligned to aa chunk boundaries. When seeking, > calculate the expected frame offset in the target chunk. Adjust the > timestamp and truncate the next packet accordingly. > > This solution works for the majority o

[FFmpeg-devel] [PATCH v5 3/3] aadec: improve seeking in mp3 content

2018-07-11 Thread Karsten Otto
MP3 frames may not be aligned to aa chunk boundaries. When seeking, calculate the expected frame offset in the target chunk. Adjust the timestamp and truncate the next packet accordingly. This solution works for the majority of tested audio material. For some rare encodings with mp3 padding or emb