mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 05:31:34 +00:00
demux_mkv: use unique IDs for cover art pseudo-tracks
Might fix behavior with mkv files that use ordered chapters and have cover art tags. In my opinion, this should actually have worked (because cover art pseudo-tracks are strictly appended), but I don't have a sample file to test at hand.
This commit is contained in:
parent
5af4c81e5b
commit
44429544f5
@ -1133,6 +1133,7 @@ static void add_coverart(struct demuxer *demuxer)
|
||||
struct sh_stream *sh = new_sh_stream(demuxer, STREAM_VIDEO);
|
||||
if (!sh)
|
||||
break;
|
||||
sh->demuxer_id = -1 - sh->index; // don't clash with mkv IDs
|
||||
sh->codec = codec;
|
||||
sh->attached_picture = new_demux_packet_from(att->data, att->data_size);
|
||||
if (sh->attached_picture) {
|
||||
|
Loading…
Reference in New Issue
Block a user