mirror of https://github.com/FFmpeg/FFmpeg.git
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. Signed-off-by: Alexander Kojevnikov <alexander@kojevnikov.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>pull/19/head
parent
d2b0b839b9
commit
29d8cd265a
3 changed files with 13 additions and 7 deletions
@ -1,3 +1,3 @@ |
|||||||
40a4e41ae74ec8dacdf02402831a6a58 *./tests/data/lavf-fate/lavf.mp3 |
7fcf80c2059b5c058a6cdd2e2f798b6c *./tests/data/lavf-fate/lavf.mp3 |
||||||
97230 ./tests/data/lavf-fate/lavf.mp3 |
96366 ./tests/data/lavf-fate/lavf.mp3 |
||||||
./tests/data/lavf-fate/lavf.mp3 CRC=0x6c9850fe |
./tests/data/lavf-fate/lavf.mp3 CRC=0x6c9850fe |
||||||
|
Loading…
Reference in new issue