From 3ce5d33e7edde697460aa26361b2caebf81f7552 Mon Sep 17 00:00:00 2001
From: Karsten Suehring <karsten.suehring@hhi.fraunhofer.de>
Date: Sat, 30 Mar 2019 09:20:13 +0100
Subject: [PATCH] fix wrong nalu_type comparison in parcat after changing NAL
 unit types (M0101)

---
 source/App/Parcat/parcat.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/source/App/Parcat/parcat.cpp b/source/App/Parcat/parcat.cpp
index 9c72ed425..a686bcb5d 100644
--- a/source/App/Parcat/parcat.cpp
+++ b/source/App/Parcat/parcat.cpp
@@ -266,14 +266,21 @@ std::vector<uint8_t> filter_segment(const std::vector<uint8_t> & v, int idx, int
     int poc = -1;
     int poc_lsb = -1;
     int new_poc = -1;
-
+#if PRINT_NALUS
+    printf("NALU type: %s\n", NALU_TYPE[nalu_type]);
+#endif
+    
     if(nalu_type == NAL_UNIT_CODED_SLICE_IDR_W_RADL || nalu_type == NAL_UNIT_CODED_SLICE_IDR_N_LP)
     {
       poc = 0;
       new_poc = *poc_base + poc;
     }
 
+#if !JVET_M0101_HLS
     if(nalu_type < 32 && nalu_type != NAL_UNIT_CODED_SLICE_IDR_W_RADL && nalu_type != NAL_UNIT_CODED_SLICE_IDR_N_LP)
+#else
+      if(nalu_type < 15 && nalu_type != NAL_UNIT_CODED_SLICE_IDR_W_RADL && nalu_type != NAL_UNIT_CODED_SLICE_IDR_N_LP)
+#endif
     {
       int offset = 16;
 
-- 
GitLab