summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2016-02-05 13:56:34 +0000
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-02-05 14:04:50 +0000
commit463ea1a9c7c57ed5fb10a934c32551fed44a29de (patch)
treea9a2911ded26eaf3f8c33892f4e25d2dbafc3d74 /gst
parent90fe6c5a5bdba98a51c17674f0e6c38cec04f7da (diff)
downloadgstreamer-plugins-bad-463ea1a9c7c57ed5fb10a934c32551fed44a29de.tar.gz
rtph265depay: fix termination of access unit
Only consider the access unit complete when the next-occurring VCL NAL unit has the first bit after its NAL unit header equal to 1.
Diffstat (limited to 'gst')
-rw-r--r--gst/rtp/gstrtph265depay.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c
index feebcf096..b7e07e19d 100644
--- a/gst/rtp/gstrtph265depay.c
+++ b/gst/rtp/gstrtph265depay.c
@@ -1049,14 +1049,12 @@ gst_rtp_h265_depay_handle_nal (GstRtpH265Depay * rtph265depay, GstBuffer * nal,
/* marker bit isn't mandatory so in the following code we try to detect
* an AU boundary (see H.265 spec section 7.4.2.4.4) */
if (!marker) {
-
if (NAL_TYPE_IS_CODED_SLICE_SEGMENT (nal_type)) {
/* A NAL unit (X) ends an access unit if the next-occurring VCL NAL unit (Y) has the high-order bit of the first byte after its NAL unit header equal to 1 */
start = TRUE;
if (((map.data[6] >> 7) & 0x01) == 1) {
complete = TRUE;
}
- complete = TRUE;
} else if ((nal_type >= 32 && nal_type <= 35)
|| nal_type == 39 || (nal_type >= 41 && nal_type <= 44)
|| (nal_type >= 48 && nal_type <= 55)) {