aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-08 20:36:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-08 20:37:24 +0200
commit8e1717cf12f88823b851cca706a2e5ab7aa1c7c4 (patch)
tree5734faf6f4fa3402fa3273bf1d45aa9238b82cb9
parent79c11388e1f5d1af4dadf89f8a80d081f3a9ba4b (diff)
parentc4d37cd9ef6e374bb888f6273259b10fac5bd909 (diff)
downloadffmpeg-8e1717cf12f88823b851cca706a2e5ab7aa1c7c4.tar.gz
Merge commit 'c4d37cd9ef6e374bb888f6273259b10fac5bd909'
* commit 'c4d37cd9ef6e374bb888f6273259b10fac5bd909': matroskadec: export cover art correctly Conflicts: libavformat/matroskadec.c See: 511585ce7f7272e5069ef011d6be5f073d268901 Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/matroskadec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index d869e5381e..396c1de9b8 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2159,6 +2159,8 @@ static int matroska_read_header(AVFormatContext *s)
}
}
+ attachments[j].stream = st;
+
if (st->codec->codec_id != AV_CODEC_ID_NONE) {
st->disposition |= AV_DISPOSITION_ATTACHED_PIC;
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
@@ -2174,7 +2176,7 @@ static int matroska_read_header(AVFormatContext *s)
if (ff_alloc_extradata(st->codec, attachments[j].bin.size))
break;
memcpy(st->codec->extradata, attachments[j].bin.data,
- attachments[j].bin.size);
+ attachments[j].bin.size);
for (i = 0; ff_mkv_mime_tags[i].id != AV_CODEC_ID_NONE; i++) {
if (!strncmp(ff_mkv_mime_tags[i].str, attachments[j].mime,
@@ -2183,7 +2185,6 @@ static int matroska_read_header(AVFormatContext *s)
break;
}
}
- attachments[j].stream = st;
}
}
}