[FFmpeg-cvslog] mp3dec: Fix reading file size and frames in VBRI headers

Ingo Brückl git at videolan.org
Sat Mar 3 00:38:29 CET 2012


ffmpeg | branch: master | Ingo Brückl <ib at wupperonline.de> | Fri Sep 16 15:00:19 2011 -0700| [c05e2be9a255648816e188337b2e246883bd49b8] | committer: Alex Converse

mp3dec: Fix reading file size and frames in VBRI headers

The fields "Number of Bytes" and "Number of Frames" are mixed up. "Bytes"
come first, "Frames" behind.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Alex Converse <alex.converse at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c05e2be9a255648816e188337b2e246883bd49b8
---

 libavformat/mp3dec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 11f57ce..fc8b8a9 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -111,8 +111,8 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base)
         if(avio_rb16(s->pb) == 1) {
             /* skip delay and quality */
             avio_skip(s->pb, 4);
-            frames = avio_rb32(s->pb);
             size = avio_rb32(s->pb);
+            frames = avio_rb32(s->pb);
         }
     }
 



More information about the ffmpeg-cvslog mailing list