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

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


Author: ods15
Date: Mon Oct  2 07:56:05 2006
New Revision: 6438

Modified:
   trunk/libavcodec/vorbis_enc.c

Log:
Original Commit: r27 | ods15 | 2006-09-22 14:19:51 +0300 (Fri, 22 Sep 2006) | 2 lines

better frame_size, depending on blocksize

Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c	(original)
+++ trunk/libavcodec/vorbis_enc.c	Mon Oct  2 07:56:05 2006
@@ -534,7 +534,7 @@
 
     avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
 
-    avccontext->frame_size = VORBIS_FRAME_SIZE;
+    avccontext->frame_size = 1 << venc->blocksize[0];
 
     avccontext->coded_frame = avcodec_alloc_frame();
     avccontext->coded_frame->key_frame = 1;
@@ -548,7 +548,7 @@
 #if 0
     venc_context_t * venc = avccontext->priv_data;
     signed short * audio = data;
-    int samples = data ? VORBIS_FRAME_SIZE : 0;
+    int samples = data ? avccontext->frame_size : 0;
 
     avccontext->coded_frame->pts = av_rescale_q(op2->granulepos, (AVRational){1, avccontext->sample_rate}, avccontext->time_base);
     memcpy(packets, compressed_frame, l);




More information about the ffmpeg-cvslog mailing list