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

2018-07-08 Thread Karsten Otto
> Am 08.07.2018 um 11:12 schrieb Michael Niedermayer : > > Signierter PGP-Teil > On Sat, Jul 07, 2018 at 07:41:28PM +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 v4 2/3] aadec: add chapters and seeking

2018-07-08 Thread Michael Niedermayer
On Sat, Jul 07, 2018 at 07:41:28PM +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

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

2018-07-07 Thread Karsten Otto
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 the content. Set stream time_base based on bitrate in bytes/s, for easy t