Commit c05e2be9 authored by Ingo Brückl's avatar Ingo Brückl Committed by 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: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarAlex Converse <alex.converse@gmail.com>
parent 1c4717be
...@@ -111,8 +111,8 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base) ...@@ -111,8 +111,8 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base)
if(avio_rb16(s->pb) == 1) { if(avio_rb16(s->pb) == 1) {
/* skip delay and quality */ /* skip delay and quality */
avio_skip(s->pb, 4); avio_skip(s->pb, 4);
frames = avio_rb32(s->pb);
size = avio_rb32(s->pb); size = avio_rb32(s->pb);
frames = avio_rb32(s->pb);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment