Fix encoding ffv1 up to 4K resolution. (SF-219)