From e0945d0a2d61cdac808d006e850e0e8b0adec571 Mon Sep 17 00:00:00 2001 From: idc-dragon Date: Tue, 24 Apr 2012 16:08:47 +0200 Subject: [PATCH] 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 --- gst/rtp/gstrtpceltdepay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtp/gstrtpceltdepay.c b/gst/rtp/gstrtpceltdepay.c index 36e7f595c0..90c126390a 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);