summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2018-04-15 20:40:11 -0700
committerJan Ekström <jeebjp@gmail.com>2018-04-17 01:02:47 +0300
commit8f1c40f702614b14cd13f62f1b34d82ce2d5c949 (patch)
treeb9d54679a03d97758c3442f664830be493a3e9fc
parentb8de7d6ff3749e1edc66b8c675c2cce41ef866d6 (diff)
downloadmpv-8f1c40f702614b14cd13f62f1b34d82ce2d5c949.tar.bz2
mpv-8f1c40f702614b14cd13f62f1b34d82ce2d5c949.tar.xz
demux: mark eia608 packets as keyframes
This fixes an issue where captions stop rendering after an in-demuxer-cache seek, because the demuxer keeps waiting to find a keyframe (ds->skip_to_keyframe set to true in execute_cache_seek).
-rw-r--r--demux/demux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 23ec713276..22b1a47ab1 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -933,6 +933,7 @@ void demuxer_feed_caption(struct sh_stream *stream, demux_packet_t *dp)
return;
}
+ dp->keyframe = true;
dp->pts = MP_ADD_PTS(dp->pts, -in->ts_offset);
dp->dts = MP_ADD_PTS(dp->dts, -in->ts_offset);
pthread_mutex_unlock(&in->lock);