From 5cec6d39db438e0361bbd1f92b7cdd1781d45439 Mon Sep 17 00:00:00 2001 From: naddy Date: Wed, 6 Jul 2005 15:04:42 +0000 Subject: Fix building with gcc 2.95. Reported by: Randy Pratt , kris (pointyhat) --- audio/vorbis-tools/files/patch-oggenc_encode.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 audio/vorbis-tools/files/patch-oggenc_encode.c diff --git a/audio/vorbis-tools/files/patch-oggenc_encode.c b/audio/vorbis-tools/files/patch-oggenc_encode.c new file mode 100644 index 00000000000..f03cc5942a5 --- /dev/null +++ b/audio/vorbis-tools/files/patch-oggenc_encode.c @@ -0,0 +1,21 @@ + +$FreeBSD$ + +--- oggenc/encode.c.orig ++++ oggenc/encode.c +@@ -160,6 +160,7 @@ + /* do we have optional hard bitrate restrictions? */ + if(opt->max_bitrate > 0 || opt->min_bitrate > 0){ + struct ovectl_ratemanage2_arg ai; ++ long bitrate; + vorbis_encode_ctl(&vi, OV_ECTL_RATEMANAGE2_GET, &ai); + + /* libvorbis 1.1 (and current svn) doesn't actually fill this in, +@@ -173,7 +174,6 @@ + Also, note that this won't work correctly unless you have a very + recent (2005/03/04 or later) version of libvorbis from svn). + */ +- long bitrate; + + { + vorbis_info vi2; -- cgit