windowscodecs: Correctly set output frame size for WriteSource().