From 3900dc94ed20f6f990e5673d5206924a991f8f7e Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 22 Sep 2011 18:23:32 +0200 Subject: faac: fixup misunderstanding in sample counting ... between codec and audioencoder regarding whether or not channel count is already considered. Fixes #659836. --- ext/faac/gstfaac.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/faac') diff --git a/ext/faac/gstfaac.c b/ext/faac/gstfaac.c index 0f3f9520b..5530c0a8c 100644 --- a/ext/faac/gstfaac.c +++ b/ext/faac/gstfaac.c @@ -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; -- cgit v1.2.1