lavd/opengl_enc: use flag to mark inited context