Skip to content

Commit

Permalink
demux_mkv: set only image flag and ignore still_image
Browse files Browse the repository at this point in the history
Also check if stream is already image to avoid probing.
  • Loading branch information
kasper93 authored and Dudemanguy committed Feb 8, 2024
1 parent 9254231 commit 399a96d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions demux/demux_mkv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
}

Expand Down

0 comments on commit 399a96d

Please sign in to comment.