mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
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:
parent
131df954ce
commit
3900dc94ed
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue