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

2018-07-14 Thread Karsten Otto
> Am 14.07.2018 um 02:20 schrieb Michael Niedermayer : > > Signierter PGP-Teil > On Fri, Jul 13, 2018 at 12:35:07PM +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

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

2018-07-13 Thread Michael Niedermayer
On Fri, Jul 13, 2018 at 12:35:07PM +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 v6 3/3] aadec: improve seeking in mp3 content

2018-07-13 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