0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

demux_mkv: increase probing size for still image

Some files, especially with quite a few audio tracks have video blocks
further away, which made them false detected as still images.

Fixes: 26a5146
This commit is contained in:
Kacper Michajłow 2024-02-08 22:10:22 +01:00 committed by Dudemanguy
parent df720b5218
commit 9254231175

View File

@ -2017,7 +2017,7 @@ static void probe_if_image(demuxer_t *demuxer)
int64_t timecode = -1;
// Arbitrary restriction on packet reading.
for (int i = 0; i < 100; i++) {
for (int i = 0; i < 1000; i++) {
int ret = read_next_block_into_queue(demuxer);
if (ret == 1 && mkv_d->blocks[i].track == track) {
if (timecode != mkv_d->blocks[i].timecode)