diff options
author | Alex Converse <alex.converse@gmail.com> | 2012-03-01 16:47:54 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2012-03-02 09:31:32 -0800 |
commit | 1697c29d75942f1306e76e3c6486e1b822a5b437 (patch) | |
tree | d0973d184150ceddad36e2b824cebecbc2ab8763 /libavformat/rmdec.c | |
parent | b087ce2bee81db8cc5caffb8f0a4f6c7c92a30fe (diff) | |
download | ffmpeg-1697c29d75942f1306e76e3c6486e1b822a5b437.tar.gz |
rmdec: Honor .RMF tag size rather than assuming 18.
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r-- | libavformat/rmdec.c | 6 |
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) |