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:
wm4 2015-02-01 18:34:49 +01:00
parent 5af4c81e5b
commit 44429544f5
1 changed files with 1 additions and 0 deletions

View File

@ -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) {