Blame SOURCES/cdrdao-1.2.3-lame.patch
|
|
a7e54e |
--- utils/toc2mp3.cc.orig 2003-02-22 10:16:56 UTC
|
|
|
a7e54e |
+++ utils/toc2mp3.cc
|
|
|
a7e54e |
@@ -143,8 +143,8 @@ static void printUsage()
|
|
|
a7e54e |
|
|
|
a7e54e |
message(0, "LAME encoder version: %s", get_lame_version());
|
|
|
a7e54e |
message(0, "Supported bit rates: ");
|
|
|
a7e54e |
- for (int i = 0; i < 16 && bitrate_table[1][i] >= 0; i++) {
|
|
|
a7e54e |
- message(0, "%d ", bitrate_table[1][i]);
|
|
|
a7e54e |
+ for (int br, i = 0; (br = lame_get_bitrate(1, i)) >= 0; i++) {
|
|
|
a7e54e |
+ message(0, "%d ", br);
|
|
|
a7e54e |
}
|
|
|
a7e54e |
message(0, "");
|
|
|
a7e54e |
}
|
|
|
a7e54e |
@@ -238,8 +238,8 @@ lame_global_flags *init_encoder(int bitr
|
|
|
a7e54e |
lame_global_flags *lf;
|
|
|
a7e54e |
int bitrateOk = 0;
|
|
|
a7e54e |
|
|
|
a7e54e |
- for (int i = 0; bitrate_table[1][i] >= 0 && !bitrateOk; i++) {
|
|
|
a7e54e |
- if (bitrate == bitrate_table[1][i])
|
|
|
a7e54e |
+ for (int br, i = 0; (br = lame_get_bitrate(1, i)) >= 0 && !bitrateOk; i++) {
|
|
|
a7e54e |
+ if (br == bitrate)
|
|
|
a7e54e |
bitrateOk = 1;
|
|
|
a7e54e |
}
|
|
|
a7e54e |
|