[Ffmpeg-cvslog] r6448 - trunk/libavcodec/vorbis_enc.c

ods15 subversion
Mon Oct 2 07:56:28 CEST 2006


Author: ods15
Date: Mon Oct  2 07:56:27 2006
New Revision: 6448

Modified:
   trunk/libavcodec/vorbis_enc.c

Log:
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

Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c	(original)
+++ trunk/libavcodec/vorbis_enc.c	Mon Oct  2 07:56:27 2006
@@ -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;




More information about the ffmpeg-cvslog mailing list