fix output height when resizing video