wok-next view cdrdao/stuff/patches/cdrdao-1.2.3-bitrate_table.patch @ rev 20775
quodlibet: remove non-existent package from bdeps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 20:44:57 2018 +0300 (2018-06-06) |
parents | |
children |
line source
1 --- a/utils/toc2mp3.cc
2 +++ b/utils/toc2mp3.cc
3 @@ -143,8 +143,8 @@
5 message(0, "LAME encoder version: %s", get_lame_version());
6 message(0, "Supported bit rates: ");
7 - for (int i = 0; i < 16 && bitrate_table[1][i] >= 0; i++) {
8 - message(0, "%d ", bitrate_table[1][i]);
9 + for (int i = 0; i < 16 && lame_get_bitrate(1, i) >= 0; i++) {
10 + message(0, "%d ", lame_get_bitrate(1, i));
11 }
12 message(0, "");
13 }
14 @@ -238,8 +238,8 @@
15 lame_global_flags *lf;
16 int bitrateOk = 0;
18 - for (int i = 0; bitrate_table[1][i] >= 0 && !bitrateOk; i++) {
19 - if (bitrate == bitrate_table[1][i])
20 + for (int i = 0; lame_get_bitrate(1, i) >= 0 && !bitrateOk; i++) {
21 + if (bitrate == lame_get_bitrate(1, i))
22 bitrateOk = 1;
23 }