Commit 8e1717cf authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c4d37cd9'

* commit 'c4d37cd9':
  matroskadec: export cover art correctly

Conflicts:
	libavformat/matroskadec.c

See: 511585ceMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 79c11388 c4d37cd9
...@@ -2159,6 +2159,8 @@ static int matroska_read_header(AVFormatContext *s) ...@@ -2159,6 +2159,8 @@ static int matroska_read_header(AVFormatContext *s)
} }
} }
attachments[j].stream = st;
if (st->codec->codec_id != AV_CODEC_ID_NONE) { if (st->codec->codec_id != AV_CODEC_ID_NONE) {
st->disposition |= AV_DISPOSITION_ATTACHED_PIC; st->disposition |= AV_DISPOSITION_ATTACHED_PIC;
st->codec->codec_type = AVMEDIA_TYPE_VIDEO; st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
...@@ -2183,7 +2185,6 @@ static int matroska_read_header(AVFormatContext *s) ...@@ -2183,7 +2185,6 @@ static int matroska_read_header(AVFormatContext *s)
break; break;
} }
} }
attachments[j].stream = st;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment