h264: merge the init and reinit paths in update_thread_context()