mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
vf_libopencv: switch to an AVOptions-based system.
This commit is contained in:
@@ -520,7 +520,8 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
|
||||
} else if (!strcmp(filter->filter->name, "format") ||
|
||||
!strcmp(filter->filter->name, "noformat") ||
|
||||
!strcmp(filter->filter->name, "frei0r") ||
|
||||
!strcmp(filter->filter->name, "frei0r_src")) {
|
||||
!strcmp(filter->filter->name, "frei0r_src") ||
|
||||
!strcmp(filter->filter->name, "ocv")) {
|
||||
/* a hack for compatibility with the old syntax
|
||||
* replace colons with |s */
|
||||
char *copy = av_strdup(args);
|
||||
@@ -532,7 +533,8 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!strcmp(filter->filter->name, "frei0r"))
|
||||
if (!strcmp(filter->filter->name, "frei0r") ||
|
||||
!strcmp(filter->filter->name, "ocv"))
|
||||
nb_leading = 1;
|
||||
else if (!strcmp(filter->filter->name, "frei0r_src"))
|
||||
nb_leading = 3;
|
||||
|
||||
Reference in New Issue
Block a user