summaryrefslogtreecommitdiff
path: root/libavformat/rmdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index a5e6d2dfee..ae6cd0b482 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -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)