[Bug 757258] gstalsasink: iec61937 (Non-linear PCM bitstreams) not correctly working
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon May 9 07:48:59 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=757258
--- Comment #13 from Arnaud Pouliquen <arnaud.pouliquen at st.com> ---
By default alsasink_parse_spec function sets format to SND_PCM_FORMAT_S16_BE
for IEC pass through ( AC3, EAC3...).
Then, the test of the supported format is done in set_hwparams:
> if (snd_pcm_hw_params_set_format (alsa->handle, params, alsa->format) < 0) {
> alsa->format = SND_PCM_FORMAT_S16_LE;
SND_PCM_FORMAT_S16_BE not supported => set it to SND_PCM_FORMAT_S16_LE
>- alsa->need_swap = TRUE;
alsa format is Little, so swap only if CPU is BIG.
>+ /* swap needed if system is big endian */
>+ alsa->need_swap = (G_BYTE_ORDER == G_BIG_ENDIAN);
Regards
Arnaud
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list