summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-25 12:32:30 +0200
committerwm4 <wm4@nowhere>2017-10-25 16:39:33 +0200
commit374e3bd83c6efdf5ed41c96482618f0f5f9b8521 (patch)
tree89c9ceea7359f806d9d63b990d79785c486addb7
parent3d32cb164957854f84e41d9aeb62e0ea185d0ca9 (diff)
downloadmpv-374e3bd83c6efdf5ed41c96482618f0f5f9b8521.tar.bz2
mpv-374e3bd83c6efdf5ed41c96482618f0f5f9b8521.tar.xz
demux_timeline: trust attached picture flag
Fully fixes behavior of the files mentioned in the previous commit. Will probably lead to worse behavior if someone tries to fix real video and cover art tracks, but that's a broken fringe case anyway.
-rw-r--r--demux/demux_timeline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux_timeline.c b/demux/demux_timeline.c
index 87cc1ce6d6..7eb3d07449 100644
--- a/demux/demux_timeline.c
+++ b/demux/demux_timeline.c
@@ -372,6 +372,7 @@ static int d_open(struct demuxer *demuxer, enum demux_check check)
new->forced_track = sh->forced_track;
new->hls_bitrate = sh->hls_bitrate;
new->missing_timestamps = sh->missing_timestamps;
+ new->attached_picture = sh->attached_picture;
demux_add_sh_stream(demuxer, new);
struct virtual_stream *vs = talloc_ptrtype(p, vs);
*vs = (struct virtual_stream){