Skip to content
Snippets Groups Projects
Commit 5a1c05f8 authored by Xiang Li's avatar Xiang Li
Browse files

Merge branch 'parcat-fix' into 'master'

fix wrong nalu_type comparison in parcat after changing NAL unit types (M0101)

See merge request !400
parents 31fffded 3ce5d33e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment