aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2006-10-02 05:56:27 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2006-10-02 05:56:27 +0000
commit6fbf5855b1f4e731f8381fa93e8bc134b23a77cd (patch)
treefbc4bc43d8c07409447ffd8f6520a03d8193f102 /libavcodec
parentf71b6d7072959c896bb1b09ac340e2b2a62618c8 (diff)
downloadffmpeg-6fbf5855b1f4e731f8381fa93e8bc134b23a77cd.tar.gz
Original Commit: r40 | ods15 | 2006-09-23 09:36:30 +0300 (Sat, 23 Sep 2006) | 2 lines
fix frame_size, we need input of half the mdct Originally committed as revision 6448 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-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 8b1ecdd953..bbb21db9f3 100644
--- a/libavcodec/vorbis_enc.c
+++ b/libavcodec/vorbis_enc.c
@@ -605,7 +605,7 @@ static int vorbis_encode_init(AVCodecContext * avccontext)
avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
- avccontext->frame_size = 1 << venc->blocksize[0];
+ avccontext->frame_size = 1 << (venc->blocksize[0] - 1);
avccontext->coded_frame = avcodec_alloc_frame();
avccontext->coded_frame->key_frame = 1;