File: fix-encoder-decoder-detection.patch

package info (click to toggle)
normalize-audio 0.7.7-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,032 kB
  • sloc: sh: 9,255; ansic: 8,286; perl: 635; makefile: 139; sed: 16
file content (34 lines) | stat: -rw-r--r-- 1,203 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Author: Joachim Reichel <reichel@debian.org>
Description: Detect encoder and decoder dynamically at runtime. This results in
better defaults depending on the user's environment and avoids data loss if no
suitable encoder/decoder is found.
--- a/src/normalize-mp3.in
+++ b/src/normalize-mp3.in
@@ -26,12 +26,12 @@
 # %b becomes bitrate of re-encoded file, as specified by the -b option
 # Example: $OGGENCODE="oggenc -Q -b %b -o %m %w"
 
-$MP3DECODE  = "@MP3DECODE@";
-$MP3ENCODE  = "@MP3ENCODE@";
-$OGGDECODE  = "@OGGDECODE@";
-$OGGENCODE  = "@OGGENCODE@";
-$FLACDECODE = "@FLACDECODE@";
-$FLACENCODE = "@FLACENCODE@";
+# $MP3DECODE  = "@MP3DECODE@";
+# $MP3ENCODE  = "@MP3ENCODE@";
+# $OGGDECODE  = "@OGGDECODE@";
+# $OGGENCODE  = "@OGGENCODE@";
+# $FLACDECODE = "@FLACDECODE@";
+# $FLACENCODE = "@FLACENCODE@";
 
 # The %w etc. substitutions should *not* be used in the following, as
 # this script knows about their options already.
@@ -614,7 +614,7 @@
 	    }
 
 	    unless ($encoder) {
-		print STDERR "$progname: $output_file: no decoder available\n";
+		print STDERR "$progname: $output_file: no encoder available\n";
 		print STDERR "$progname: leaving output in $tmp_file\n";
 		next;
 	    }