diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-09-22 18:23:32 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-09-22 18:24:43 +0200 |
commit | 3900dc94ed20f6f990e5673d5206924a991f8f7e (patch) | |
tree | 142367148147d34ff017038447d607d074edf2d1 /ext/faac/gstfaac.c | |
parent | 131df954cefe12e98ba2df1737f27ddf1863ee2a (diff) | |
download | gstreamer-plugins-bad-3900dc94ed20f6f990e5673d5206924a991f8f7e.tar.gz |
faac: fixup misunderstanding in sample counting
... between codec and audioencoder regarding whether or not channel
count is already considered.
Fixes #659836.
Diffstat (limited to 'ext/faac/gstfaac.c')
-rw-r--r-- | ext/faac/gstfaac.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |