]> git.sesse.net Git - ffmpeg/commit
mp3dec: Fix VBR bit rate parsing
authorAlexander Kojevnikov <alexander@kojevnikov.com>
Thu, 7 Mar 2013 05:38:55 +0000 (21:38 -0800)
committerAnton Khirnov <anton@khirnov.net>
Fri, 8 Mar 2013 06:32:11 +0000 (07:32 +0100)
commiteae0879d961b78717dd2a0899809ad22819ae9e3
tree50091c13c60aca3bf5dc5a045d0419ec91e0d144
parent4be368b504c6f4a03051448728fc62cd0ed506b2
mp3dec: Fix VBR bit rate parsing

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: Anton Khirnov <anton@khirnov.net>
libavcodec/mpegaudio_parser.c
libavformat/mp3dec.c