Edgewall Software

Opened 13 years ago

Closed 13 years ago

#10307 closed defect (invalid)

get mp3 file duration when it is VBRI file

Reported by: yuyuer_007@… Owned by:
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


hi all!

When I used FFmpeg realease "Love" to get mp3 file duration,I found this bug in libavformat/mp3dec.c

    if(v == MKBETAG('V', 'B', 'R', 'I')) {
        /* Check tag version */
        if(avio_rb16(s->pb) == 1) {
            /* skip delay and quality */
            avio_skip(s->pb, 4);
            frames = avio_rb32(s->pb);//code line 1
            size = avio_rb32(s->pb);// code line 2

"code line 1" and "code line 2" should exchanged.

before I exchanged , the info is :


track : 1

Duration: 43:01:23.13, start: 0.000000, bitrate: 0 kb/s

after exchanged,the info is :


track : 1

Duration: 00:04:04.11, start: 0.000000, bitrate: 194 kb/s

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 13 years ago

Resolution: invalid
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.