diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2005-01-01 15:59:45 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2005-01-01 15:59:45 +0000 |
commit | 40acbd5f8dc2db15f840e29c3ad1ccfbb5d0064e (patch) | |
tree | e92035ced822469733076c13b13bfe6883974cc6 /media-sound/mp32ogg/files | |
parent | Updated Copyright dates to 2005. (Manifest recommit) (diff) | |
download | gentoo-2-40acbd5f8dc2db15f840e29c3ad1ccfbb5d0064e.tar.gz gentoo-2-40acbd5f8dc2db15f840e29c3ad1ccfbb5d0064e.tar.bz2 gentoo-2-40acbd5f8dc2db15f840e29c3ad1ccfbb5d0064e.zip |
Ported debian patches, closes bug #76267.
Diffstat (limited to 'media-sound/mp32ogg/files')
-rw-r--r-- | media-sound/mp32ogg/files/digest-mp32ogg-0.11-r4 | 1 | ||||
-rw-r--r-- | media-sound/mp32ogg/files/mp32ogg-0.11-r4-mpg321.patch | 32 | ||||
-rw-r--r-- | media-sound/mp32ogg/files/mp32ogg-0.11-r4-quality.patch | 98 |
3 files changed, 131 insertions, 0 deletions
diff --git a/media-sound/mp32ogg/files/digest-mp32ogg-0.11-r4 b/media-sound/mp32ogg/files/digest-mp32ogg-0.11-r4 new file mode 100644 index 000000000000..613f3644777b --- /dev/null +++ b/media-sound/mp32ogg/files/digest-mp32ogg-0.11-r4 @@ -0,0 +1 @@ +MD5 7da7d3b125d2d0a6c12bbb0e9cdb93ff mp32ogg 9216 diff --git a/media-sound/mp32ogg/files/mp32ogg-0.11-r4-mpg321.patch b/media-sound/mp32ogg/files/mp32ogg-0.11-r4-mpg321.patch new file mode 100644 index 000000000000..b617584f94de --- /dev/null +++ b/media-sound/mp32ogg/files/mp32ogg-0.11-r4-mpg321.patch @@ -0,0 +1,32 @@ +--- mp32ogg.orig 2004-02-03 01:09:20.000000000 -0800 ++++ mp32ogg 2004-02-03 01:25:01.000000000 -0800 +@@ -6,6 +6,9 @@ + # <http://www.opensource.org/licenses/artistic-license.html> + + # ChangeLog ++# 0.11-gentoo ++# * Jeremy Huddleston <eradicator@gentoo.org>: ++# Added support for mpg321 + # + # 0.11 + # * Have output reflect change in license (doh) +@@ -79,7 +82,7 @@ + # 0.1 + # First Release + +-$version = "v0.11"; ++$version = "v0.11-gentoo"; + + use MP3::Info; + use File::Find (); +@@ -93,6 +96,10 @@ + $ogginfo = "/usr/bin/ogginfo"; + $mpg123 = "/usr/bin/mpg123"; + ++if(! -x $mpg123) { ++ $mpg123 = "/usr/bin/mpg321"; ++} ++ + print "mp32ogg $version\n"; + print "(c) 2000-2002 Nathan Walp\n"; + print "Released without warranty under the terms of the Artistic License\n\n"; diff --git a/media-sound/mp32ogg/files/mp32ogg-0.11-r4-quality.patch b/media-sound/mp32ogg/files/mp32ogg-0.11-r4-quality.patch new file mode 100644 index 000000000000..38fad9bc9abc --- /dev/null +++ b/media-sound/mp32ogg/files/mp32ogg-0.11-r4-quality.patch @@ -0,0 +1,98 @@ +--- mp32ogg.orig 2005-01-01 15:32:32.138906448 +0000 ++++ mp32ogg 2005-01-01 15:52:33.061338488 +0000 +@@ -9,6 +9,8 @@ + # 0.11-gentoo + # * Jeremy Huddleston <eradicator@gentoo.org>: + # Added support for mpg321 ++# * --quality option support (from Debian 0.11-r3 release) ++# * Non-zero exit code on failure (from Debian 0.11-r3 release) + # + # 0.11 + # * Have output reflect change in license (doh) +@@ -104,8 +106,10 @@ + print "(c) 2000-2002 Nathan Walp\n"; + print "Released without warranty under the terms of the Artistic License\n\n"; + ++my $userquality=-2.0; + + GetOptions("help|?",\&showhelp, ++ "quality=f" => \$userquality, + "delete", + "rename=s", + "lowercase", +@@ -116,6 +120,8 @@ + sub showhelp() { + print "Usage: $0 [options] dir1 dir2 file1 file2 ...\n\n"; + print "Options:\n"; ++ print "--quality=[-1..10] Set Ogg/Vorbis quality level\n"; ++ print " Defaults to bitrate of original .mp3\n"; + print "--delete Delete files after converting\n"; + print "--rename=format Instead of simply replacing the .mp3 with\n"; + print " .ogg for the output file, produce output \n"; +@@ -174,20 +180,26 @@ + } + + $mp3bitrate = $fileinfo->{BITRATE}; +- if($mp3bitrate ne "") { +- if($mp3bitrate > 256) { +- $quality = 8; +- } elsif($mp3bitrate > 192) { +- $quality = 7; +- } elsif($mp3bitrate > 128) { +- $quality = 6; +- } else { +- $quality = 5; +- } ++ if (($userquality < -1) || ($userquality > 10)) { ++ # Set quality adjacent to mp3 bitrate ++ if($mp3bitrate ne "") { ++ if($mp3bitrate > 256) { ++ $quality = 8; ++ } elsif($mp3bitrate > 192) { ++ $quality = 7; ++ } elsif($mp3bitrate > 128) { ++ $quality = 6; ++ } else { ++ $quality = 5; ++ } ++ } + } else { + $quality = 5; + print "MP3::Info didn't report the bitrate... weird. Corrupt MP3 file? Bug?\n"; ++ # User defined quality ++ $quality = $userquality; + } ++ + if($filename eq "" || + ((/\%a/) && $info->{ARTIST} eq "") || + ((/\%t/) && $info->{TITLE} eq "") || +@@ -276,19 +288,19 @@ + { + warn "Conversion failed ($oggoutputfile truncated).\n"; + close CHECK; +- return; ++ exit 1; + } + elsif($_ eq "header_integrity=fail\n") + { + warn "Conversion failed ($oggoutputfile header integrity check failed).\n"; + close CHECK; +- return; ++ exit 1; + } + elsif($_ eq "stream_integrity=fail\n") + { + warn "Conversion failed ($oggoutputfile header integrity check failed).\n"; + close CHECK; +- return; ++ exit 1; + } + } + close CHECK; +@@ -300,5 +312,6 @@ + } + else { + warn "Conversion failed ($oggenc returned $result).\n"; ++ exit 1 + } + } |