summaryrefslogtreecommitdiffstats
path: root/source/ap/cdrdao/cdrdao.bitrate_table.diff
blob: bc5fe0fe3d386a6314a3a9a3c26820a04a041c05 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- ./utils/toc2mp3.cc.orig	2003-02-22 04:16:56.000000000 -0600
+++ ./utils/toc2mp3.cc	2018-02-03 00:37:19.081854469 -0600
@@ -143,8 +143,8 @@
 
   message(0, "LAME encoder version: %s", get_lame_version());
   message(0, "Supported bit rates: ");
-  for (int i = 0; i < 16 && bitrate_table[1][i] >= 0; i++) {
-    message(0, "%d ", bitrate_table[1][i]);
+  for (int i = 0; i < 16 && lame_get_bitrate(1, i) >= 0; i++) {
+    message(0, "%d ", lame_get_bitrate(1, i));
   }
   message(0, "");
 }
@@ -238,8 +238,8 @@
   lame_global_flags *lf;
   int bitrateOk = 0;
 
-  for (int i = 0; bitrate_table[1][i] >= 0 && !bitrateOk; i++) {
-    if (bitrate == bitrate_table[1][i])
+  for (int i = 0; lame_get_bitrate(1, i) >= 0 && !bitrateOk; i++) {
+    if (bitrate == lame_get_bitrate(1, i))
       bitrateOk = 1;
   }