diff --git a/source/Lib/TLibDecoder/TDecCAVLC.cpp b/source/Lib/TLibDecoder/TDecCAVLC.cpp
index 819939d..d4af0db 100644
a
|
b
|
Void TDecCavlc::parseSPS(TComSPS* pcSPS) |
546 | 546 | pcSPS->setMaxDecPicBuffering( uiCode + 1, i); |
547 | 547 | READ_UVLC ( uiCode, "sps_num_reorder_pics" ); |
548 | 548 | pcSPS->setNumReorderPics(uiCode, i); |
| 549 | assert(pcSPS->getNumReorderPics(i) <= pcSPS->getMaxDecPicBuffering(i) - 1); |
549 | 550 | READ_UVLC ( uiCode, "sps_max_latency_increase_plus1"); |
550 | 551 | pcSPS->setMaxLatencyIncrease( uiCode, i ); |
551 | 552 | |
… |
… |
Void TDecCavlc::parseVPS(TComVPS* pcVPS) |
672 | 673 | { |
673 | 674 | READ_UVLC( uiCode, "vps_max_dec_pic_buffering_minus1[i]" ); pcVPS->setMaxDecPicBuffering( uiCode + 1, i ); |
674 | 675 | READ_UVLC( uiCode, "vps_num_reorder_pics[i]" ); pcVPS->setNumReorderPics( uiCode, i ); |
| 676 | assert(pcVPS->getNumReorderPics(i) <= pcVPS->getMaxDecPicBuffering(i) - 1); |
675 | 677 | READ_UVLC( uiCode, "vps_max_latency_increase_plus1[i]" ); pcVPS->setMaxLatencyIncrease( uiCode, i ); |
676 | 678 | |
677 | 679 | if (!subLayerOrderingInfoPresentFlag) |