Tidied and simplified calculation of input frame index
from encoding order index and temporal reference
Fixed Bug where GOP splitting could introduce a broken closed GOP.
Authored by: wackston2 2005-11-26
Parent: [r2943]
Child: [r2945]