[FFmpeg-cvslog] Correct determination of file size and frames in VBRI headers

Ingo Brückl git at videolan.org
Wed Sep 21 21:08:37 CEST 2011


ffmpeg | branch: release/0.8 | Ingo Brückl <ib at wupperonline.de> | Thu Sep 15 16:19:05 2011 +0200| [6e21f03547a6fd4cb5d9e2414270b451613a3b50] | committer: Michael Niedermayer

Correct determination of 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>
(cherry picked from commit 5d305c9398c043f9ae3bbc6d64a3e1dc468c1e63)

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

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

diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 64f6ea8..47772a4 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -109,8 +109,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