[Bug 751605] audio: Add proper support for non-interleaved / planar audio

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun May 6 13:54:12 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=751605

--- Comment #23 from George Kiagiadakis <gkiagia at tolabaki.gr> ---
(In reply to Sebastian Dröge (slomo) from comment #19)
> @@ +402,3 @@
> +      /* default offsets assume channels are laid out sequentially in
> memory */
> +      for (i = 0; i < info->channels; i++)
> +        meta->offsets[i] = i * samples * info->finfo->width / 8;
> 
> GST_AUDIO_INFO_BPS :)

Nope, sorry. I did that and the unit test fails :)
BPS checks the finfo->depth, which is the amount of valid bytes.
I really need finfo->width, which is the "stride" (valid + invalid bytes)

-- 
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