[0.10] gst-plugins-good: celtdepay: calculate size correctly
Wim Taymans
wtay at kemper.freedesktop.org
Tue Apr 24 07:10:57 PDT 2012
Module: gst-plugins-good
Branch: 0.10
Commit: 0d43404fc63eeaa163c82904968ed3c022880a55
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=0d43404fc63eeaa163c82904968ed3c022880a55
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 b583efd..a51a27b 100644
--- a/gst/rtp/gstrtpceltdepay.c
+++ b/gst/rtp/gstrtpceltdepay.c
@@ -247,7 +247,7 @@ gst_rtp_celt_depay_process (GstBaseRTPDepayload * 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 (buf, offset, size);
More information about the gstreamer-commits
mailing list