gst-plugins-good: celtdepay: calculate size correctly
Sebastian Dröge
slomo at kemper.freedesktop.org
Wed Apr 25 01:30:31 PDT 2012
Module: gst-plugins-good
Branch: master
Commit: e0945d0a2d61cdac808d006e850e0e8b0adec571
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=e0945d0a2d61cdac808d006e850e0e8b0adec571
Author: idc-dragon <idc-dragon at gmx.de>
Date: Tue Apr 24 16:08:47 2012 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
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);
More information about the gstreamer-commits
mailing list