• Alexander Kojevnikov's avatar
    mp3dec: Fix VBR bit rate parsing · eae0879d
    Alexander Kojevnikov authored
    When parsing the Xing/Info tag, don't set the bit rate if it's an Info tag.
    
    When parsing the stream, don't override the bit rate if it's already set,
    otherwise calculate the mean bit rate from parsed frames. This way, the bit
    rate will be set correctly both for CBR and VBR streams.
    
    CC:libav-stable@libav.org
    Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
    eae0879d
mp3dec.c 7.92 KB