changeset 7142:60c3177894fe libavcodec

Set frame_size to the gcd of what the decoder can output.
author michael
date Wed, 25 Jun 2008 18:35:24 +0000
parents be322248a318
children 8e25ae9f1c4a
files vorbis_dec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_dec.c	Wed Jun 25 17:37:47 2008 +0000
+++ b/vorbis_dec.c	Wed Jun 25 18:35:24 2008 +0000
@@ -979,6 +979,7 @@
 
     avccontext->channels = vc->audio_channels;
     avccontext->sample_rate = vc->audio_samplerate;
+    avccontext->frame_size  = FFMIN(vc->blocksize[0], vc->blocksize[1])>>2;
 
     return 0 ;
 }