Original Commit: r42 | ods15 | 2006-09-23 10:53:16 +0300 (Sat, 23 Sep 2006) | 2 lines
authorOded Shimon <ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 05:56:32 +0000 (05:56 +0000)
committerOded Shimon <ods15@ods15.dyndns.org>
Mon, 2 Oct 2006 05:56:32 +0000 (05:56 +0000)
fix for residue end

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

libavcodec/vorbis_enc.c

index 33a8ca4..9ace0dc 100644 (file)
@@ -311,7 +311,7 @@ static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccon
     rc = &venc->residues[0];
     rc->type = 0;
     rc->begin = 0;
-    rc->end = 1 << venc->blocksize[0];
+    rc->end = 1 << (venc->blocksize[0] - 1);
     rc->partition_size = 64;
     rc->classifications = 1;
     rc->classbook = 1;