[xiph-cvs] cvs commit: vorbis/lib vorbisenc.c

Michael Smith msmith at xiph.org
Tue Feb 19 23:35:20 PST 2002



msmith      02/02/19 23:35:20

  Modified:    lib      vorbisenc.c
  Log:
  Set nominal/min/max bitrate properly for managed modes in vorbis_info, so
  that these values are set correctly in the primary header.

Revision  Changes    Path
1.37      +5 -1      vorbis/lib/vorbisenc.c

Index: vorbisenc.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/vorbisenc.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- vorbisenc.c	2002/01/22 08:06:07	1.36
+++ vorbisenc.c	2002/02/20 07:35:19	1.37
@@ -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 @@
     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);
 }
 

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list