Commit 187355c6 authored by bcoudurier's avatar bcoudurier

broken stsd length might be < 16, fix elst-assert.mp4

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19084 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 53628a7d
......@@ -763,15 +763,17 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
for(pseudo_stream_id=0; pseudo_stream_id<entries; pseudo_stream_id++) {
//Parsing Sample description table
enum CodecID id;
int dref_id;
int dref_id = 1;
MOVAtom a = { 0, 0, 0 };
int64_t start_pos = url_ftell(pb);
int size = get_be32(pb); /* size */
uint32_t format = get_le32(pb); /* data format */
get_be32(pb); /* reserved */
get_be16(pb); /* reserved */
dref_id = get_be16(pb);
if (size >= 16) {
get_be32(pb); /* reserved */
get_be16(pb); /* reserved */
dref_id = get_be16(pb);
}
if (st->codec->codec_tag &&
st->codec->codec_tag != format &&
......
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