mirror of
https://github.com/mpv-player/mpv
synced 2024-10-22 08:51:57 +02: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:
parent
2bb02879aa
commit
f2f9d23e79
@ -2407,6 +2407,7 @@ static int handle_block(demuxer_t *demuxer, struct block_info *block_info)
|
|||||||
if (!dp)
|
if (!dp)
|
||||||
break;
|
break;
|
||||||
dp->keyframe = keyframe;
|
dp->keyframe = keyframe;
|
||||||
|
dp->pos = mkv_d->last_filepos;
|
||||||
/* If default_duration is 0, assume no pts value is known
|
/* If default_duration is 0, assume no pts value is known
|
||||||
* for packets after the first one (rather than all pts
|
* for packets after the first one (rather than all pts
|
||||||
* values being the same). Also, don't use it for extra
|
* values being the same). Also, don't use it for extra
|
||||||
|
Loading…
Reference in New Issue
Block a user