diff options
author | Andreas Rheinhardt <[email protected]> | 2021-09-13 16:54:58 +0200 |
---|---|---|
committer | Andreas Rheinhardt <[email protected]> | 2021-09-19 04:45:34 +0200 |
commit | a85d2de45f37aace0cbdb754881effa0c9689784 (patch) | |
tree | 3f257065c0cca93338dcf40fdc744d6e64144505 /libavutil/hwcontext_cuda.c | |
parent | 0c34cf899dc67febb57f5da4ec50640985e4f670 (diff) |
avfilter/vf_spp: Use preinit instead of init_dict
By using preinit, the AVDCT already exists directly after
allocating the filter, so that the filter's AVClass's child_next
becomes usable for setting options with the AV_OPT_SEARCH_CHILDREN
search flag. This means that it is no longer necessary to use
the init_dict callback for this filter.
Furthermore, the earlier code did not abide by the documentation
of the init_dict callback at all: Instead of only returning the
options that have not been recognized it always returned all options
on any av_opt_set() error and errored out in this case, even if it
is just an unrecognized option. This behaviour has been inherited by
avfilter_init_dict(), contradicting its documentation. This is also
fixed in this commit.
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavutil/hwcontext_cuda.c')
0 files changed, 0 insertions, 0 deletions