summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-01-08 15:27:44 +0000
committerTim-Philipp Müller <tim@centricular.com>2016-02-16 00:24:40 +0000
commit59fea44503547fa731333235bae115c930375b69 (patch)
tree6a8aa0a61df27d3c49c5d69a04aa354744dffcf2
parentd215b18a209cc742b8ec708c32a1ed3b5a55c433 (diff)
downloadgstreamer-plugins-good-59fea44503547fa731333235bae115c930375b69.tar.gz
rtp: fix nal unit type check
After further investigation the previous commit is wrong. The code intended to check if the type is 39 or the ranges 41-44 and 48-55. Just like gsth265parse.c does. Type 40 would not be complete.
-rw-r--r--gst/rtp/gstrtph265depay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c
index edfdb9bd7..cb9339dae 100644
--- a/gst/rtp/gstrtph265depay.c
+++ b/gst/rtp/gstrtph265depay.c
@@ -914,7 +914,8 @@ gst_rtp_h265_depay_handle_nal (GstRtpH265Depay * rtph265depay, GstBuffer * nal,
}
complete = TRUE;
} else if ((nal_type >= 32 && nal_type <= 35)
- || nal_type >= 39) {
+ || nal_type == 39 || (nal_type >= 41 && nal_type <= 44)
+ || (nal_type >= 48 && nal_type <= 55)) {
/* VPS, SPS, PPS, SEI, ... terminate an access unit */
complete = TRUE;
}