openbsd-ports/audio/vorbis-tools/patches/patch-oggenc_encode_c

20 lines
860 B
Plaintext

$OpenBSD: patch-oggenc_encode_c,v 1.1 2005/07/06 15:08:08 naddy Exp $
--- oggenc/encode.c.orig Wed Jul 6 17:05:44 2005
+++ oggenc/encode.c Wed Jul 6 17:06:19 2005
@@ -160,6 +160,7 @@ 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 +174,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;