Commit 1697c29d authored by Alex Converse's avatar Alex Converse

rmdec: Honor .RMF tag size rather than assuming 18.

parent b087ce2b
......@@ -438,10 +438,8 @@ static int rm_read_header(AVFormatContext *s)
return AVERROR(EIO);
}
avio_rb32(pb); /* header size */
avio_rb16(pb);
avio_rb32(pb);
avio_rb32(pb); /* number of headers */
tag_size = avio_rb32(pb);
avio_skip(pb, tag_size - 8);
for(;;) {
if (pb->eof_reached)
......
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