fix defect7654 that  the encoder won't generate IDR when temporal layer setting changes