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

2018-07-08 Thread Michael Niedermayer
On Sun, Jul 08, 2018 at 11:46:26AM +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 v5 2/3] aadec: add chapters and seeking

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