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