Set the field of obj with the given name to value.
@paramin obj A struct whose first element is a pointer to an
AVClass.
@paramin name the name of the field to set
@paramin val The value to set. If the field is not of a string
type, then the given string is parsed.
SI postfixes and some named scalars are supported.
If the field is of a numeric type, it has to be a numeric or named
scalar. Behavior with more than one scalar and +- infix operators
is undefined.
If the field is of a flags type, it has to be a sequence of numeric
scalars or named flags separated by '+' or '-'. Prefixing a flag
with '+' causes it to be set without affecting the other flags;
similarly, '-' unsets a flag.
@paramout o_out if non-NULL put here a pointer to the AVOption
found
@param alloc this parameter is currently ignored
@return 0 if the value has been set, or an AVERROR code in case of
error:
AVERROR_OPTION_NOT_FOUND if no matching option exists
AVERROR(ERANGE) if the value is out of range
AVERROR(EINVAL) if the value is not valid
@deprecated use av_opt_set()
Set the field of obj with the given name to value.
@paramin obj A struct whose first element is a pointer to an AVClass. @paramin name the name of the field to set @paramin val The value to set. If the field is not of a string type, then the given string is parsed. SI postfixes and some named scalars are supported. If the field is of a numeric type, it has to be a numeric or named scalar. Behavior with more than one scalar and +- infix operators is undefined. If the field is of a flags type, it has to be a sequence of numeric scalars or named flags separated by '+' or '-'. Prefixing a flag with '+' causes it to be set without affecting the other flags; similarly, '-' unsets a flag. @paramout o_out if non-NULL put here a pointer to the AVOption found @param alloc this parameter is currently ignored @return 0 if the value has been set, or an AVERROR code in case of error: AVERROR_OPTION_NOT_FOUND if no matching option exists AVERROR(ERANGE) if the value is out of range AVERROR(EINVAL) if the value is not valid @deprecated use av_opt_set()