summaryrefslogtreecommitdiff
path: root/libavcodec/vorbis_enc.c
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2006-10-02 05:56:32 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2006-10-02 05:56:32 +0000
commit4317306f34b18fe405ed2bde36c6d2dc06c07f5d (patch)
tree374c2b466da2db92d4b9e29452d2a2d1c1b14656 /libavcodec/vorbis_enc.c
parentb452ee42f590f76dbf803692abdd1a93bb8f9203 (diff)
Original Commit: r42 | ods15 | 2006-09-23 10:53:16 +0300 (Sat, 23 Sep 2006) | 2 lines
fix for residue end Originally committed as revision 6450 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis_enc.c')
-rw-r--r--libavcodec/vorbis_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c
index 33a8ca4f5e..9ace0dc149 100644
--- a/libavcodec/vorbis_enc.c
+++ b/libavcodec/vorbis_enc.c
@@ -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;