1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

demux_mkv: export packet file position

This gives us approximate fallback playback percentage position if the
duration is unknown.
This commit is contained in:
wm4 2014-10-29 22:08:50 +01:00
parent 2bb02879aa
commit f2f9d23e79

View File

@ -2407,6 +2407,7 @@ static int handle_block(demuxer_t *demuxer, struct block_info *block_info)
if (!dp)
break;
dp->keyframe = keyframe;
dp->pos = mkv_d->last_filepos;
/* If default_duration is 0, assume no pts value is known
* for packets after the first one (rather than all pts
* values being the same). Also, don't use it for extra