demux_mkv: set only image flag and ignore still_image

Also check if stream is already image to avoid probing.
This commit is contained in:
Kacper Michajłow 2024-02-08 22:32:37 +01:00 committed by Dudemanguy
parent 9254231175
commit 399a96db5b
1 changed files with 2 additions and 4 deletions

View File

@ -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;
}
}
}