diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-06-25 18:35:24 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-06-25 18:35:24 +0000 |
commit | da95f225fd4c029da75bf8aeb93094bfc9a95ba7 (patch) | |
tree | ee503f65f99b44b268c96514615af495dad02839 /libavcodec/vorbis_dec.c | |
parent | 6e1aa0f38306ad8f5829bb323842a7f1a6b9d015 (diff) | |
download | ffmpeg-da95f225fd4c029da75bf8aeb93094bfc9a95ba7.tar.gz |
Set frame_size to the gcd of what the decoder can output.
Originally committed as revision 13971 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis_dec.c')
-rw-r--r-- | libavcodec/vorbis_dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vorbis_dec.c b/libavcodec/vorbis_dec.c index 299c787734..673c0403fc 100644 --- a/libavcodec/vorbis_dec.c +++ b/libavcodec/vorbis_dec.c @@ -979,6 +979,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext) { avccontext->channels = vc->audio_channels; avccontext->sample_rate = vc->audio_samplerate; + avccontext->frame_size = FFMIN(vc->blocksize[0], vc->blocksize[1])>>2; return 0 ; } |