fix idr interval issue

if the uiIntraPeriod is expected as multiple of GOP size and GOP size is 1 << (iTemporalLayerNum - 1),  
the uiIntraPeriod should be adjusted if (uiIntraPeriod & (uiGopSize-1)).