correct the bug of resizing the input video