summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2016-09-27 15:26:19 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2016-09-27 15:30:01 -0400
commit7025d014bbec126d2e583f6a71ec3149797eb345 (patch)
tree8704da6ca3e4179694b57105ee4869a3f15769b7
parent7f294ad125a0beb0e00eb5de61330dcee19d463f (diff)
rtph26[45]depay: Don't handle NALs inside STAP units twice
They've already been handled before pushing them into the adapter.
-rw-r--r--gst/rtp/gstrtph264depay.c6
-rw-r--r--gst/rtp/gstrtph265depay.c6
2 files changed, 2 insertions, 10 deletions
diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c
index 430650e7c..056724c67 100644
--- a/gst/rtp/gstrtph264depay.c
+++ b/gst/rtp/gstrtph264depay.c
@@ -1055,12 +1055,8 @@ gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
}
outsize = gst_adapter_available (rtph264depay->adapter);
- if (outsize > 0) {
+ if (outsize > 0)
outbuf = gst_adapter_take_buffer (rtph264depay->adapter, outsize);
- outbuf =
- gst_rtp_h264_depay_handle_nal (rtph264depay, outbuf, timestamp,
- marker);
- }
break;
}
case 26:
diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c
index 97353afcb..f0dcb4bb7 100644
--- a/gst/rtp/gstrtph265depay.c
+++ b/gst/rtp/gstrtph265depay.c
@@ -1256,12 +1256,8 @@ gst_rtp_h265_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
}
outsize = gst_adapter_available (rtph265depay->adapter);
- if (outsize > 0) {
+ if (outsize > 0)
outbuf = gst_adapter_take_buffer (rtph265depay->adapter, outsize);
- outbuf =
- gst_rtp_h265_depay_handle_nal (rtph265depay, outbuf, timestamp,
- marker);
- }
break;
}
case 49: