Re: [FFmpeg-devel] [PATCH v3 2/3] aadec: add chapters and seeking

2018-07-02 Thread Karsten Otto
> Am 02.07.2018 um 10:22 schrieb Michael Niedermayer : > > Signierter PGP-Teil > On Thu, Jun 21, 2018 at 06:58:25PM +0200, Karsten Otto wrote: >> read_packet reads content in chunks. Thus seek must be clamped to valid >> chunk positions in the file, which in turn are relative to chapter start >>

Re: [FFmpeg-devel] [PATCH v3 2/3] aadec: add chapters and seeking

2018-07-02 Thread Michael Niedermayer
On Thu, Jun 21, 2018 at 06:58:25PM +0200, Karsten Otto wrote: > read_packet reads content in chunks. Thus seek must be clamped to valid > chunk positions in the file, which in turn are relative to chapter start > positions. > > So in read_header, scan for chapter headers once by skipping through t