summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-07-22 19:03:13 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-07-22 19:03:13 +0000
commit04c27f285da86ddad99d258779171c5a0f5cb3af (patch)
tree5a93f3358b6cb7e8e41874b37f1d810c05774795 /media-sound/lame/files
parent- keyword ~arm (diff)
downloadhistorical-04c27f285da86ddad99d258779171c5a0f5cb3af.tar.gz
historical-04c27f285da86ddad99d258779171c5a0f5cb3af.tar.bz2
historical-04c27f285da86ddad99d258779171c5a0f5cb3af.zip
Support stdin and stdout with sndfile wrt #274255, thanks to Naohiro Aota and Jérôme Poulin.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'media-sound/lame/files')
-rw-r--r--media-sound/lame/files/lame-3.98.2-get_audio.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/media-sound/lame/files/lame-3.98.2-get_audio.patch b/media-sound/lame/files/lame-3.98.2-get_audio.patch
new file mode 100644
index 000000000000..7b53b317aa62
--- /dev/null
+++ b/media-sound/lame/files/lame-3.98.2-get_audio.patch
@@ -0,0 +1,23 @@
+--- lame-398-2.orig/frontend/get_audio.c 2009-06-17 00:45:34.000000000 +0900
++++ lame-398-2/frontend/get_audio.c 2009-06-17 00:48:58.000000000 +0900
+@@ -605,12 +605,17 @@
+ }
+ #endif
+ #ifdef HAVE_MPGLIB
+- if ((musicin = fopen(lpszFileName, "rb")) == NULL) {
++ if (!strcmp(lpszFileName, "-")) {
++ lame_set_stream_binary_mode(musicin = stdin); /* Read from standard input. */
++ }
++ else {
++ if ((musicin = fopen(lpszFileName, "rb")) == NULL) {
+ if (silent < 10) {
+- error_printf("Could not find \"%s\".\n", lpszFileName);
++ error_printf("Could not find \"%s\".\n", lpszFileName);
+ }
+ exit(1);
+- }
++ }
++ }
+ if (-1 == lame_decode_initfile(musicin, &mp3input_data, enc_delay, enc_padding)) {
+ if (silent < 10) {
+ error_printf("Error reading headers in mp3 input file %s.\n", lpszFileName);