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
pull/126/head
Oded Shimon 19 years ago
parent f71b6d7072
commit 6fbf5855b1
  1. 2
      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->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;

Loading…
Cancel
Save