celtdepay: calculate size correctly
authoridc-dragon <idc-dragon at gmx.de>
Tue, 24 Apr 2012 14:08:47 +0000 (16:08 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 25 Apr 2012 08:29:56 +0000 (10:29 +0200)
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

index 36e7f59..90c1263 100644 (file)
@@ -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);