cdrdao: fix build with newer libmp3lame
This commit is contained in:
parent
8676fa3c3a
commit
169d64dc91
2 changed files with 25 additions and 1 deletions
24
srcpkgs/cdrdao/patches/fix-lame-bitrate_table.patch
Normal file
24
srcpkgs/cdrdao/patches/fix-lame-bitrate_table.patch
Normal file
|
@ -0,0 +1,24 @@
|
|||
--- utils/toc2mp3.cc
|
||||
+++ utils/toc2mp3.cc
|
||||
@@ -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;
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'cdrdao'
|
||||
pkgname=cdrdao
|
||||
version=1.2.3
|
||||
revision=2
|
||||
revision=3
|
||||
nocross=yes # runs pccts/antlr/antlr
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config"
|
||||
|
|
Loading…
Reference in a new issue