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:
Andreas Fenkart 2013-04-09 23:13:18 +01:00 committed by Tim-Philipp Müller
parent 5ae92ce770
commit 20d3ec8810

View file

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