diff options
author | Aman Gupta <aman@tmm1.net> | 2018-04-15 20:40:11 -0700 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-04-17 01:02:47 +0300 |
commit | 8f1c40f702614b14cd13f62f1b34d82ce2d5c949 (patch) | |
tree | b9d54679a03d97758c3442f664830be493a3e9fc /demux/demux.c | |
parent | b8de7d6ff3749e1edc66b8c675c2cce41ef866d6 (diff) | |
download | mpv-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).
Diffstat (limited to 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 1 |
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); |