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
1 changed files with 1 additions and 0 deletions

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