handle videos with odd sizes which h.264 cannot handle