mirror of https://github.com/mpv-player/mpv
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:
parent
9254231175
commit
399a96db5b
|
@ -2012,7 +2012,7 @@ static void probe_if_image(demuxer_t *demuxer)
|
||||||
mkv_track_t *track = mkv_d->tracks[n];
|
mkv_track_t *track = mkv_d->tracks[n];
|
||||||
struct sh_stream *sh = track->stream;
|
struct sh_stream *sh = track->stream;
|
||||||
|
|
||||||
if (!sh || sh->type != STREAM_VIDEO)
|
if (!sh || sh->type != STREAM_VIDEO || sh->image)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
int64_t timecode = -1;
|
int64_t timecode = -1;
|
||||||
|
@ -2030,11 +2030,9 @@ static void probe_if_image(demuxer_t *demuxer)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assume still image
|
// Assume still image
|
||||||
if (video_blocks == 1) {
|
if (video_blocks == 1)
|
||||||
sh->still_image = true;
|
|
||||||
sh->image = true;
|
sh->image = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void probe_x264_garbage(demuxer_t *demuxer)
|
static void probe_x264_garbage(demuxer_t *demuxer)
|
||||||
|
|
Loading…
Reference in New Issue