[FFmpeg-cvslog] r13971 - trunk/libavcodec/vorbis_dec.c

michael subversion
Wed Jun 25 20:35:24 CEST 2008


Author: michael
Date: Wed Jun 25 20:35:24 2008
New Revision: 13971

Log:
Set frame_size to the gcd of what the decoder can output.


Modified:
   trunk/libavcodec/vorbis_dec.c

Modified: trunk/libavcodec/vorbis_dec.c
==============================================================================
--- trunk/libavcodec/vorbis_dec.c	(original)
+++ trunk/libavcodec/vorbis_dec.c	Wed Jun 25 20:35:24 2008
@@ -979,6 +979,7 @@ static av_cold int vorbis_decode_init(AV
 
     avccontext->channels = vc->audio_channels;
     avccontext->sample_rate = vc->audio_samplerate;
+    avccontext->frame_size  = FFMIN(vc->blocksize[0], vc->blocksize[1])>>2;
 
     return 0 ;
 }




More information about the ffmpeg-cvslog mailing list