1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

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).
This commit is contained in:
Aman Gupta 2018-04-15 20:40:11 -07:00 committed by Jan Ekström
parent b8de7d6ff3
commit 8f1c40f702

View File

@ -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);