fix for calculation of the inframe state for videos