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

demux_mkv: any reference makes a frame not a keyframe

Fixes seeking with:

https://bugs.chromium.org/p/chromium/issues/detail?id=497889

Haali also ignores the element's contents, and interprets its presence
as the block not being a keyframe. FFmpeg is going to have an equivalent
change.

I don't know yet whether the affected sample is valid - a reference
timestamp of 0 doesn't make too much sense to me.
This commit is contained in:
wm4 2017-01-31 12:44:14 +01:00
parent 07494aab16
commit c178920505

View File

@ -2604,8 +2604,7 @@ static int read_block_group(demuxer_t *demuxer, int64_t end,
int64_t num = ebml_read_int(s);
if (num == EBML_INT_INVALID)
goto error;
if (num)
block->keyframe = false;
block->keyframe = false;
break;
case MATROSKA_ID_CLUSTER: