ffmpegenc: Pass the size of the output buffer to avcodec_encode_audio
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 10 Oct 2011 22:56:04 +0000 (23:56 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 31 Oct 2011 10:14:03 +0000 (11:14 +0100)
commitdc80daec384dbb976f47d439b09a189d951560e4
treedabb2deaabfa0011334ac7e277699c3900532290
parentd5e4fc3bbb5c70adcd35786ef72312e8acef411a
ffmpegenc: Pass the size of the output buffer to avcodec_encode_audio

avcodec_encode_audio is documented as taking the size of the output
buffer not the size of the input buffer.  This fixes the use of the G722
encoder and makes the code more consistent with avconv from the libav
source tree.
ext/ffmpeg/gstffmpegenc.c