From 20d3ec881019a10bd669c1bb909817cf45abd3be Mon Sep 17 00:00:00 2001 From: Andreas Fenkart Date: Tue, 9 Apr 2013 23:13:18 +0100 Subject: [PATCH] rtpsbcdepay: fix sbc frame length calculation for mono and stereo modes https://bugzilla.gnome.org/show_bug.cgi?id=697463 --- gst/rtp/gstrtpsbcdepay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtp/gstrtpsbcdepay.c b/gst/rtp/gstrtpsbcdepay.c index 5bf91ea832..28c00fcfd7 100644 --- a/gst/rtp/gstrtpsbcdepay.c +++ b/gst/rtp/gstrtpsbcdepay.c @@ -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;