Opened 12 months ago

Last modified 12 months ago

#9810 new defect

packet->pts skips forward after a seek

Reported by: oneway Owned by:
Priority: normal Component: avformat
Version: unspecified Keywords: seek, jump, skip
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by oneway)

Summary of the bug:
I used ffmpeg-107064-g7adeeff91f UTC compile date: 2022-04-05 to reproduce this bug.
How to reproduce:

./ffplay -seek_interval 20 skips_after_seek.mp3
ffplay version: ffplay-106494-g1291568c98
built on 2022-04-05 

Start playing and press right arrow once to seek 20 seconds. At ~30s, the playback time and audio will jump to ~40s, In my application, I noticed the packet->pts jumps correspondingly after call to av_read_frame().

This only happens with some files, I have only one example from a user so far, but my application receives a fair amount of complaints about this. It didn't happen with older versions of ffmpeg, probably < 4.0.

Here is a link to the sample file used to reproduce:

Change History (6)

comment:1 by oneway, 12 months ago

Description: modified (diff)

comment:2 by oneway, 12 months ago

Description: modified (diff)

comment:3 by oneway, 12 months ago

I can't cut the file size down because it makes the problem go away and the ftp seems to be down so idk

Last edited 12 months ago by oneway (previous) (diff)

comment:4 by Balling, 12 months ago

comment:5 by oneway, 12 months ago

Description: modified (diff)

in reply to:  4 comment:6 by oneway, 12 months ago

Replying to Balling:

Does this sample sufficient for you?

I put a link to a test file that you can reproduce it at: I'm aware it's AAC with an mp3 extension, that's how it came to me

Note: See TracTickets for help on using tickets.