From: Mike Smith Date: Wed, 20 Feb 2002 07:35:19 +0000 (+0000) Subject: Set nominal/min/max bitrate properly for managed modes in vorbis_info, so X-Git-Tag: v1.3.3~810 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c5b06aaac53e7e71ce9a12ea66d996c8cf5653f;p=platform%2Fupstream%2Flibvorbis.git Set nominal/min/max bitrate properly for managed modes in vorbis_info, so that these values are set correctly in the primary header. svn path=/trunk/vorbis/; revision=3079 --- diff --git a/lib/vorbisenc.c b/lib/vorbisenc.c index a675abe..1bd6b3b 100644 --- a/lib/vorbisenc.c +++ b/lib/vorbisenc.c @@ -11,7 +11,7 @@ ******************************************************************** function: simple programmatic interface for encoder mode setup - last mod: $Id: vorbisenc.c,v 1.36 2002/01/22 08:06:07 xiphmont Exp $ + last mod: $Id: vorbisenc.c,v 1.37 2002/02/20 07:35:19 msmith Exp $ ********************************************************************/ @@ -984,6 +984,10 @@ int vorbis_encode_setup_managed(vorbis_info *vi, ci->bi.avgfloat_noise_maxval=_bm_max_noise_offset[(int)approx_vbr]; } + vi->bitrate_nominal = nominal_bitrate; + vi->bitrate_lower = min_bitrate; + vi->bitrate_upper = max_bitrate; + return(ret); }