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
This commit is contained in:
idc-dragon 2012-04-24 16:08:47 +02:00 committed by Sebastian Dröge
parent 373333c2b3
commit e0945d0a2d

View 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);