From 399a96db5b36279fc720f818b152bc8f061f33e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Thu, 8 Feb 2024 22:32:37 +0100 Subject: [PATCH] demux_mkv: set only image flag and ignore still_image Also check if stream is already image to avoid probing. --- demux/demux_mkv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/demux/demux_mkv.c b/demux/demux_mkv.c index 46b1366ecc..9bd0b8e5aa 100644 --- a/demux/demux_mkv.c +++ b/demux/demux_mkv.c @@ -2012,7 +2012,7 @@ static void probe_if_image(demuxer_t *demuxer) mkv_track_t *track = mkv_d->tracks[n]; struct sh_stream *sh = track->stream; - if (!sh || sh->type != STREAM_VIDEO) + if (!sh || sh->type != STREAM_VIDEO || sh->image) continue; int64_t timecode = -1; @@ -2030,10 +2030,8 @@ static void probe_if_image(demuxer_t *demuxer) } // Assume still image - if (video_blocks == 1) { - sh->still_image = true; + if (video_blocks == 1) sh->image = true; - } } }