Original Commit: r52 | ods15 | 2006-09-23 17:38:43 +0300 (Sat, 23 Sep 2006) | 2 lines
authorOded Shimon <ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 06:07:34 +0000 (06:07 +0000)
committerOded Shimon <ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 06:07:34 +0000 (06:07 +0000)
correct rangebits for floor

Originally committed as revision 6459 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vorbis_enc.c

index a466519..fc3abf2 100644 (file)
@@ -299,7 +299,7 @@ static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccon
         for (j = 0; j < books; j++) c->books[j] = 0;
     }
     fc->multiplier = 1;
-    fc->rangebits = venc->blocksize[0];
+    fc->rangebits = venc->blocksize[0] - 1;
 
     fc->values = 2;
     for (i = 0; i < fc->partitions; i++)