ref: 8b907c18fd0777e661bb680d3638f0482355b3ea
parent: cf37fa3ef4f0080e706b9c96519b665d5ea5467d
author: volvet <qizh@cisco.com>
date: Wed Mar 12 13:38:25 EDT 2014
fix idr interval issue
--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -369,7 +369,7 @@
uiIntraPeriod = pCodingParam.uiIntraPeriod;// intra period (multiple of GOP size as desired)
if (uiIntraPeriod == (uint32_t) (-1))
uiIntraPeriod = 0;
- else if (uiIntraPeriod & uiGopSize) // none multiple of GOP size
+ else if (uiIntraPeriod & (uiGopSize-1)) // none multiple of GOP size
uiIntraPeriod = ((uiIntraPeriod + uiGopSize - 1) / uiGopSize) * uiGopSize;
iLTRRefNum = bEnableLongTermReference ? LONG_TERM_REF_NUM : 0;