[FFmpeg-trac] #3124(avformat:new): Wrong PTS when seeking in Opus file

FFmpeg trac at avcodec.org
Wed Dec 11 02:35:58 CET 2013

#3124: Wrong PTS when seeking in Opus file
             Reporter:  tuukka      |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  minor       |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  Opus        |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |

Comment (by dalecurtis):

 I believe we're seeing the same issue in Chrome.  Specifically, PTS values
 are going backwards on granule boundaries.  There also appears to be
 issues with the oggopus_private data not being reset after seek (so
 cur_dts increases forever), but I'm not sure that matters.

 I've attached a test case and test file which repro this issue.  You can
 build it like so:

 clang ogg-seek.c -lavformat -lavcodec -lavutil -lopus -lpthread -lz
 ./a.out detodos.opus​

 You'll see some pts printouts followed by a seek, and then eventually the
 pts goes backwards in time:

 pts: 134088 -- dts: 134088
 pts: 95688 -- dts: 95688 <------------ BACKWARDS!

Ticket URL: <https://trac.ffmpeg.org/ticket/3124#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list