Mercurial > libavcodec.hg
comparison vorbis_dec.c @ 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 | e943e1409077 |
children | 032a49f033e8 |
comparison
equal
deleted
inserted
replaced
7141:be322248a318 | 7142:60c3177894fe |
---|---|
977 return -1; | 977 return -1; |
978 } | 978 } |
979 | 979 |
980 avccontext->channels = vc->audio_channels; | 980 avccontext->channels = vc->audio_channels; |
981 avccontext->sample_rate = vc->audio_samplerate; | 981 avccontext->sample_rate = vc->audio_samplerate; |
982 avccontext->frame_size = FFMIN(vc->blocksize[0], vc->blocksize[1])>>2; | |
982 | 983 |
983 return 0 ; | 984 return 0 ; |
984 } | 985 } |
985 | 986 |
986 // Decode audiopackets ------------------------------------------------- | 987 // Decode audiopackets ------------------------------------------------- |