wok-next diff cdrdao/stuff/patches/cdrdao-1.2.3-bitrate_table.patch @ rev 20908
bzip2: update home page and source URL (thanks shann); domain bzip.org is suspended now...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Aug 12 04:53:45 2018 +0300 (2018-08-12) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cdrdao/stuff/patches/cdrdao-1.2.3-bitrate_table.patch Sun Aug 12 04:53:45 2018 +0300 1.3 @@ -0,0 +1,24 @@ 1.4 +--- a/utils/toc2mp3.cc 1.5 ++++ b/utils/toc2mp3.cc 1.6 +@@ -143,8 +143,8 @@ 1.7 + 1.8 + message(0, "LAME encoder version: %s", get_lame_version()); 1.9 + message(0, "Supported bit rates: "); 1.10 +- for (int i = 0; i < 16 && bitrate_table[1][i] >= 0; i++) { 1.11 +- message(0, "%d ", bitrate_table[1][i]); 1.12 ++ for (int i = 0; i < 16 && lame_get_bitrate(1, i) >= 0; i++) { 1.13 ++ message(0, "%d ", lame_get_bitrate(1, i)); 1.14 + } 1.15 + message(0, ""); 1.16 + } 1.17 +@@ -238,8 +238,8 @@ 1.18 + lame_global_flags *lf; 1.19 + int bitrateOk = 0; 1.20 + 1.21 +- for (int i = 0; bitrate_table[1][i] >= 0 && !bitrateOk; i++) { 1.22 +- if (bitrate == bitrate_table[1][i]) 1.23 ++ for (int i = 0; lame_get_bitrate(1, i) >= 0 && !bitrateOk; i++) { 1.24 ++ if (bitrate == lame_get_bitrate(1, i)) 1.25 + bitrateOk = 1; 1.26 + } 1.27 +