1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

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

This commit is contained in:
Alex Converse
2012-03-01 16:47:54 -08:00
parent b087ce2bee
commit 1697c29d75

View File

@@ -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)