summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-18 16:46:30 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-18 16:46:30 +0000
commit5eb0bea161fb437838e9133e39f2a3a60f29b3a5 (patch)
tree4216fc027870b049ce26f2afc8e1a0f9174dbd31 /media-libs/faac/files
parentInitial Commit. Ebuild by Kai Huuhko <kai.huuhko@gmail.com> and Thomas Cort <... (diff)
downloadgentoo-2-5eb0bea161fb437838e9133e39f2a3a60f29b3a5.tar.gz
gentoo-2-5eb0bea161fb437838e9133e39f2a3a60f29b3a5.tar.bz2
gentoo-2-5eb0bea161fb437838e9133e39f2a3a60f29b3a5.zip
Add patch to fix mishandling of track numbers 07 and 08, thanks to Jose A. Hernandez in bug #80690.
(Portage version: 2.1_pre7-r5)
Diffstat (limited to 'media-libs/faac/files')
-rw-r--r--media-libs/faac/files/digest-faac-1.24-r23
-rw-r--r--media-libs/faac/files/faac-1.24-tracknumber.patch23
2 files changed, 26 insertions, 0 deletions
diff --git a/media-libs/faac/files/digest-faac-1.24-r2 b/media-libs/faac/files/digest-faac-1.24-r2
new file mode 100644
index 000000000000..9441922a2cd6
--- /dev/null
+++ b/media-libs/faac/files/digest-faac-1.24-r2
@@ -0,0 +1,3 @@
+MD5 e72dc74db17b42b06155613489077ad7 faac-1.24.tar.gz 282585
+RMD160 7dbd8eec4f26875ea641b3319d8b970e68d88a60 faac-1.24.tar.gz 282585
+SHA256 a5844ff3bce0d7c885af71f41da01395d3253dcfc33863306a027a78a7cfad9e faac-1.24.tar.gz 282585
diff --git a/media-libs/faac/files/faac-1.24-tracknumber.patch b/media-libs/faac/files/faac-1.24-tracknumber.patch
new file mode 100644
index 000000000000..faea8fd55731
--- /dev/null
+++ b/media-libs/faac/files/faac-1.24-tracknumber.patch
@@ -0,0 +1,23 @@
+This patch is needed to fix usage of faac with track numbers higher than 7 with
+a 0 prefix. The original scanf parameter %i will consider numbers starting by 0
+as octal, thus breaking the numbering for 08 and 09 tracks.
+
+See Gentoo bug #80690.
+
+Index: faac/frontend/main.c
+===================================================================
+--- faac.orig/frontend/main.c
++++ faac/frontend/main.c
+@@ -607,10 +607,10 @@ int main(int argc, char *argv[])
+ album = optarg;
+ break;
+ case TRACK_FLAG:
+- sscanf(optarg, "%i/%i", &trackno, &ntracks);
++ sscanf(optarg, "%d/%d", &trackno, &ntracks);
+ break;
+ case DISC_FLAG:
+- sscanf(optarg, "%i/%i", &discno, &ndiscs);
++ sscanf(optarg, "%d/%d", &discno, &ndiscs);
+ break;
+ case COMPILATION_FLAG:
+ compilation = 0x1;