From: idc-dragon Date: Tue, 24 Apr 2012 14:08:47 +0000 (+0200) Subject: celtdepay: calculate size correctly X-Git-Tag: RELEASE-0.11.91~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0945d0a2d61cdac808d006e850e0e8b0adec571;p=platform%2Fupstream%2Fgst-plugins-good.git celtdepay: calculate size correctly The summation was done wrong, causing the de-payloader to exit its loop too early, before all frames are processed. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=674472 --- diff --git a/gst/rtp/gstrtpceltdepay.c b/gst/rtp/gstrtpceltdepay.c index 36e7f59..90c1263 100644 --- a/gst/rtp/gstrtpceltdepay.c +++ b/gst/rtp/gstrtpceltdepay.c @@ -247,7 +247,7 @@ gst_rtp_celt_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf) do { s = payload[pos++]; size += s; - total_size += size + 1; + total_size += s + 1; } while (s == 0xff); outbuf = gst_rtp_buffer_get_payload_subbuffer (&rtp, offset, size);