From 49de666aae2185acf4f614b49014cf8cff7ec395 Mon Sep 17 00:00:00 2001 From: ChristianFeldmann Date: Sun, 6 Oct 2024 21:23:18 +0200 Subject: [PATCH] Correct. This is how the default should be calculated. --- YUViewLib/src/parser/VVC/slice_header.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YUViewLib/src/parser/VVC/slice_header.cpp b/YUViewLib/src/parser/VVC/slice_header.cpp index 762dfe211..2ade8d8e1 100644 --- a/YUViewLib/src/parser/VVC/slice_header.cpp +++ b/YUViewLib/src/parser/VVC/slice_header.cpp @@ -240,13 +240,13 @@ void slice_header::parse(SubByteReaderLogging &reader, { this->sh_cabac_init_flag = reader.readFlag("sh_cabac_init_flag"); } + if (picHeader->ph_temporal_mvp_enabled_flag) + this->sh_collocated_from_l0_flag = + (this->sh_slice_type == SliceType::B) ? picHeader->ph_collocated_from_l0_flag : true; if (picHeader->ph_temporal_mvp_enabled_flag && !pps->pps_rpl_info_in_ph_flag) { if (this->sh_slice_type == SliceType::B) this->sh_collocated_from_l0_flag = reader.readFlag("sh_collocated_from_l0_flag"); - else - this->sh_collocated_from_l0_flag = - (this->sh_slice_type == SliceType::B) ? picHeader->ph_collocated_from_l0_flag : true; if ((this->sh_collocated_from_l0_flag && this->NumRefIdxActive[0] > 1) || (!this->sh_collocated_from_l0_flag && this->NumRefIdxActive[1] > 1)) {