summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gst/rtp/gstrtpmp4adepay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpmp4adepay.c b/gst/rtp/gstrtpmp4adepay.c
index 406940e0..cb8735d0 100644
--- a/gst/rtp/gstrtpmp4adepay.c
+++ b/gst/rtp/gstrtpmp4adepay.c
@@ -208,9 +208,9 @@ gst_rtp_mp4a_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
for (i = 0; i < size; i++) {
data[i] = ((data[i + 1] & 1) << 7) | ((data[i + 2] & 0xfe) >> 1);
}
- /* last bit, this is probably not needed. */
- data[i] = ((data[i + 1] & 1) << 7);
- GST_BUFFER_SIZE (buffer) = size + 1;
+
+ /* ignore remaining bit, we're only interested in full bytes */
+ GST_BUFFER_SIZE (buffer) = size;
gst_caps_set_simple (srccaps,
"codec_data", GST_TYPE_BUFFER, buffer, NULL);