mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
#! /bin/sh /usr/share/dpatch/dpatch-run
|
|
## 10_faad-stdio.dpatch by <matthew@ibis.bells>
|
|
##
|
|
## All lines beginning with `## DP:' are a description of the patch.
|
|
## DP: No description.
|
|
|
|
@DPATCH@
|
|
diff -urNad faad2-2.6.1~/frontend/faad.man faad2-2.6.1/frontend/faad.man
|
|
--- faad2-2.6.1~/frontend/faad.man 2008-06-17 04:27:16.000000000 +0100
|
|
+++ faad2-2.6.1/frontend/faad.man 2008-06-17 04:27:17.000000000 +0100
|
|
@@ -73,7 +73,7 @@
|
|
Quiet \- Suppresses status messages during processing.
|
|
.TP
|
|
.B \-t ", \-\^\-oldformat"
|
|
-Sets the processing to use the old MPEG\(hy4 AAC ADTS format when outputting in said format.
|
|
+Sets the processing output to be sent to the standard out. Only raw PCM may be sent to the standard out, as headers cannot currently be streamed.
|
|
.TP
|
|
.B \-w ", \-\^\-stdio"
|
|
Sets the processing output to be sent to the standard out.
|
|
diff -urNad faad2-2.6.1~/frontend/main.c faad2-2.6.1/frontend/main.c
|
|
--- faad2-2.6.1~/frontend/main.c 2007-11-01 12:33:29.000000000 +0000
|
|
+++ faad2-2.6.1/frontend/main.c 2008-06-17 03:58:33.000000000 +0100
|
|
@@ -1190,9 +1190,10 @@
|
|
}
|
|
|
|
/* only allow raw data on stdio */
|
|
- if (writeToStdio == 1)
|
|
+ if (writeToStdio && (format != 2))
|
|
{
|
|
- format = 2;
|
|
+ faad_fprintf(stderr, "Only raw PCM data (2) may be sent to the standard out.\n");
|
|
+ return 1;
|
|
}
|
|
|
|
/* point to the specified file name */
|