lavd/opengl_enc: fix window size correction code