render_api: sanitise user-supplied values early
render_api: sanitise user-supplied values early

We often only check for != 0, later on, with zero being "unset",
but negative values would obviously be bogus here.

libass/libass,libass/libass,astiob/libass,astiob/libass