Opened 12 years ago Closed 12 years ago #1072 closed defect (fixed)numDU = 0 causes divide by zero, run time error
Description
In TEncGOP::compressGOP(...) numDU is initialized to zero for SliceMode != 1:
UInt numDU = ( m_pcCfg->getSliceMode() == 1 ) ? ( pcPic->getNumCUsInFrame() / maxCU ) : ( 0 );
this leads to a divide by zero when SliceMode == 0 in the following call:
pcSlice->getSPS()->setHrdParameters( m_pcCfg->getFrameRate(), numDU, m_pcCfg->getTargetBitrate(), ( m_pcCfg->getIntraPeriod() > 0 ) );
...
ducpbSizeValue = bitRate/numDU;
Not sure how to best prevent this - greg Change History (3)comment:1 Changed 12 years ago by DefaultCC Plugin
comment:2 Changed 12 years ago by gregcoppa
comment:3 Changed 12 years ago by fbossen
Note: See
TracTickets for help on using
tickets. | This list contains all users that will be notified about changes made to this ticket. These roles will be notified: Reporter, Owner, Subscriber, Participant
|
Fixed in r3478