mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtpsbcdepay: fix sbc frame length calculation for mono and stereo modes
https://bugzilla.gnome.org/show_bug.cgi?id=697463
This commit is contained in:
parent
5ae92ce770
commit
20d3ec8810
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ gst_rtp_sbc_depay_get_params (GstRtpSbcDepay * depay, const guint8 * data,
|
|||
|
||||
length = 4 + ((4 * subbands * channels) / 8);
|
||||
|
||||
if (!(channel_mode & 0x1)) {
|
||||
if (channel_mode == 0 || channel_mode == 1) {
|
||||
/* Mono || Dual channel */
|
||||
length += ((blocks * channels * bitpool)
|
||||
+ 4 /* round up */ ) / 8;
|
||||
|
|
Loading…
Reference in a new issue