[SCM] libav/experimental: Set frame_size to the gcd of what the decoder can output.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:24:20 UTC 2013
The following commit has been merged in the experimental branch:
commit da95f225fd4c029da75bf8aeb93094bfc9a95ba7
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Wed Jun 25 18:35:24 2008 +0000
Set frame_size to the gcd of what the decoder can output.
Originally committed as revision 13971 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/vorbis_dec.c b/libavcodec/vorbis_dec.c
index 299c787..673c040 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 ;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list