mfvideoenc: Fix broken encoding when resolution is not an even number