diff --git a/source/Lib/DecoderLib/VLCReader.cpp b/source/Lib/DecoderLib/VLCReader.cpp index 5003572316446365c1ba906b7bed209d56d9e9d9..5bac1bc04e575f4414a9729e63e7fbb4bdd6d88d 100644 --- a/source/Lib/DecoderLib/VLCReader.cpp +++ b/source/Lib/DecoderLib/VLCReader.cpp @@ -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); }