Commit 638ab655 authored by Hendry's avatar Hendry

Add check to ensure the value range for num reordering picture is correct

parent 8c7e6a11
Pipeline #5900 passed with stage
in 21 minutes and 22 seconds
......@@ -1300,6 +1300,7 @@ void HLSyntaxReader::dpb_parameters(int maxSubLayersMinus1, bool subLayerInfoFla
pcSPS->setMaxDecPicBuffering(code + 1, i);
READ_UVLC(code, "dpb_max_num_reorder_pics[i]");
pcSPS->setMaxNumReorderPics(code, i);
CHECK( pcSPS->getMaxNumReorderPics(i) >= pcSPS->getMaxDecPicBuffering(i), "The value of dpb_max_num_reorder_pics[ i ] shall be in the range of 0 to dpb_max_dec_pic_buffering_minus1[ i ], inclusive" );
READ_UVLC(code, "dpb_max_latency_increase_plus1[i]");
pcSPS->setMaxLatencyIncreasePlus1(code, i);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment