Browse Source

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@gmx.at>
tags/n0.9
Ingo Brückl Michael Niedermayer 14 years ago
parent
commit
5d305c9398
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mp3dec.c

+ 1
- 1
libavformat/mp3dec.c View File

@@ -110,8 +110,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);
}
}



Loading…
Cancel
Save