Wrong PTS when seeking in Opus file
|Reported by:||Tuukka Pasanen||Owned by:|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||no|
Seeking in Opus file with ffprobe/ffplay everything seems work fine. PTS changes correctly and all works as expected.
Scenario when one wants to seek to X PTS in file and then read Y bytes after that jump Y bytes ahead to read next Y bytes one gets the same output as first readied Y bytes.
If you just keep doing that reading procedure after next Z times you just get new loop to read on. This bug somehow follows the OggS-headers and granule points in Ogg-container. It seems you always got Y bytes from start of the last header-point. On Ogg/Vorbis with or without libvorbis everything works with same code.
https://github.com/illuusio/ffmpeg-example.git have example application to demo this bug report.