diff options
author | Karsten Otto <ottoka@posteo.de> | 2018-07-08 11:46:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-07-09 03:25:53 +0200 |
commit | 6cc6b619b95128ef084720c42ef0d361376e8f09 (patch) | |
tree | 09a9de3f6e0f57fab3e7f344d16ca873a7883c56 /libavformat/rtpenc_latm.c | |
parent | 3bf39f2aeff0defcc11454c497b6ea0ffbcd17ca (diff) | |
download | ffmpeg-6cc6b619b95128ef084720c42ef0d361376e8f09.tar.gz |
aadec: add chapters and seeking
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
timestamp to position conversion.
Then in read_seek, find the chapter containing the seek position, calculate
the nearest chunk position, and reinit the read_seek state accordingly.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/rtpenc_latm.c')
0 files changed, 0 insertions, 0 deletions