Mercurial > libavcodec.hg
changeset 3843:2fa04cd17b7e libavcodec
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
author | ods15 |
---|---|
date | Mon, 02 Oct 2006 05:56:27 +0000 |
parents | 5f8cfa1a6fdb |
children | bffe869bc19c |
files | vorbis_enc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vorbis_enc.c Mon Oct 02 05:56:25 2006 +0000 +++ b/vorbis_enc.c Mon Oct 02 05:56:27 2006 +0000 @@ -605,7 +605,7 @@ 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;