summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_sync_packet_queue.h
AgeCommit message (Collapse)Author
13 daysFix late subtitles when they are muxed late with respect to the video.Carl Hetherington
In one example we have the sequence video 3088,377 sub 3087,334 sub 3088,710 video 3088,419 so the 3087,334 sub is very late. Here we insert a queue to bring subtitle packets a little forward for processing. There is already a similar thing in the player (_delay) but adding a longer delay there seems wasteful because a) the video is by that point already decompressed and b) this problem only applies to FFmpeg-decoded files (and then, I think only if we are previewing or burning in subtitles).