Commit 7ce33e3e authored by ods15's avatar ods15

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6448 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2a7fa486
...@@ -605,7 +605,7 @@ static int vorbis_encode_init(AVCodecContext * avccontext) ...@@ -605,7 +605,7 @@ static int vorbis_encode_init(AVCodecContext * avccontext)
avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata); 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 = avcodec_alloc_frame();
avccontext->coded_frame->key_frame = 1; avccontext->coded_frame->key_frame = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment