Ticket #1078: max-latency-increase-plus1.patch
File max-latency-increase-plus1.patch, 2.2 KB (added by tajime, 12 years ago) |
---|
-
source/Lib/TLibDecoder/TDecCAVLC.cpp
585 585 #endif 586 586 READ_UVLC ( uiCode, "sps_num_reorder_pics" ); 587 587 pcSPS->setNumReorderPics(uiCode, i); 588 READ_UVLC ( uiCode, "sps_max_latency_increase ");589 pcSPS->setMaxLatencyIncrease( uiCode , i );588 READ_UVLC ( uiCode, "sps_max_latency_increase_plus1"); 589 pcSPS->setMaxLatencyIncrease( uiCode - 1, i ); 590 590 591 591 if (!subLayerOrderingInfoPresentFlag) 592 592 { … … 711 711 READ_UVLC( uiCode, "vps_max_dec_pic_buffering[i]" ); pcVPS->setMaxDecPicBuffering( uiCode, i ); 712 712 #endif 713 713 READ_UVLC( uiCode, "vps_num_reorder_pics[i]" ); pcVPS->setNumReorderPics( uiCode, i ); 714 READ_UVLC( uiCode, "vps_max_latency_increase [i]" ); pcVPS->setMaxLatencyIncrease( uiCode, i );714 READ_UVLC( uiCode, "vps_max_latency_increase_plus1[i]" ); pcVPS->setMaxLatencyIncrease( uiCode - 1, i ); 715 715 716 716 if (!subLayerOrderingInfoPresentFlag) 717 717 { -
source/Lib/TLibEncoder/TEncCavlc.cpp
478 478 WRITE_UVLC( pcSPS->getMaxDecPicBuffering(i), "sps_max_dec_pic_buffering[i]" ); 479 479 #endif 480 480 WRITE_UVLC( pcSPS->getNumReorderPics(i), "sps_num_reorder_pics[i]" ); 481 WRITE_UVLC( pcSPS->getMaxLatencyIncrease(i) , "sps_max_latency_increase[i]" );481 WRITE_UVLC( pcSPS->getMaxLatencyIncrease(i) + 1, "sps_max_latency_increase_plus1[i]" ); 482 482 if (!subLayerOrderingInfoPresentFlag) 483 483 { 484 484 break; … … 574 574 WRITE_UVLC( pcVPS->getMaxDecPicBuffering(i), "vps_max_dec_pic_buffering[i]" ); 575 575 #endif 576 576 WRITE_UVLC( pcVPS->getNumReorderPics(i), "vps_num_reorder_pics[i]" ); 577 WRITE_UVLC( pcVPS->getMaxLatencyIncrease(i) , "vps_max_latency_increase[i]" );577 WRITE_UVLC( pcVPS->getMaxLatencyIncrease(i) + 1, "vps_max_latency_increase_plus1[i]" ); 578 578 if (!subLayerOrderingInfoPresentFlag) 579 579 { 580 580 break;