Function avfilter_graph_segment_apply_opts

pub unsafe extern "C" fn avfilter_graph_segment_apply_opts(
    seg: *mut AVFilterGraphSegment,
    flags: i32,
) -> i32
Expand description

Apply parsed options to filter instances in a graph segment.

Walk through all filter instances in the graph segment that have option dictionaries associated with them and apply those options with av_opt_set_dict2(…, AV_OPT_SEARCH_CHILDREN). AVFilterParams.opts is replaced by the dictionary output by av_opt_set_dict2(), which should be empty (NULL) if all options were successfully applied.

If any options could not be found, this function will continue processing all other filters and finally return AVERROR_OPTION_NOT_FOUND (unless another error happens). The calling program may then deal with unapplied options as it wishes.

Any creation-pending filters (see avfilter_graph_segment_create_filters()) present in the segment will cause this function to fail. AVFilterParams with no associated filter context are simply skipped.

@param seg the filtergraph segment to process @param flags reserved for future use, caller must set to 0 for now

@retval “non-negative number” Success, all options were successfully applied. @retval AVERROR_OPTION_NOT_FOUND some options were not found in a filter @retval “another negative error code” other failures

@note Calling this function multiple times is safe, as it is idempotent.