summaryrefslogtreecommitdiff
path: root/audio/vorbis-tools/patches/patch-ae
blob: 57d938c596317e04481b3a32890e0fc8a8f16b8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ae,v 1.1 2005/10/20 20:08:59 rillig Exp $

ISO-C90 fix.

--- oggenc/encode.c.orig	Fri Jun  3 12:15:10 2005
+++ oggenc/encode.c	Thu Oct 20 22:06:18 2005
@@ -160,6 +160,8 @@ int oe_encode(oe_enc_opt *opt)
         /* 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 +175,6 @@ int oe_encode(oe_enc_opt *opt)
                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;