faac: fixup misunderstanding in sample counting

... between codec and audioencoder regarding whether or not channel
count is already considered.

Fixes #659836.
This commit is contained in:
Mark Nauwelaerts 2011-09-22 18:23:32 +02:00
parent 131df954ce
commit 3900dc94ed

View file

@ -415,6 +415,9 @@ gst_faac_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
if (!(handle = faacEncOpen (samplerate, channels, &samples, &bytes)))
goto setup_failed;
/* mind channel count */
samples /= channels;
/* ok, record and set up */
faac->format = fmt;
faac->bps = bps;