From 9254231175b21d7a7d7a3314b6dc1bedd062448d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Thu, 8 Feb 2024 22:10:22 +0100 Subject: [PATCH] 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 --- demux/demux_mkv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demux/demux_mkv.c b/demux/demux_mkv.c index 98be0cf6d6..46b1366ecc 100644 --- a/demux/demux_mkv.c +++ b/demux/demux_mkv.c @@ -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)