mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avfilter: Remove init_opaque callback
The last init_opaque callback has been removed in commit07ffdedf78; the opaque argument has been always NULL since0acf7e268b. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
8f51c12f87
commit
7b0e63b7d5
2 changed files with 1 additions and 10 deletions
|
|
@ -877,9 +877,7 @@ int avfilter_init_dict(AVFilterContext *ctx, AVDictionary **options)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->filter->init_opaque)
|
if (ctx->filter->init)
|
||||||
ret = ctx->filter->init_opaque(ctx, NULL);
|
|
||||||
else if (ctx->filter->init)
|
|
||||||
ret = ctx->filter->init(ctx);
|
ret = ctx->filter->init(ctx);
|
||||||
else if (ctx->filter->init_dict)
|
else if (ctx->filter->init_dict)
|
||||||
ret = ctx->filter->init_dict(ctx, options);
|
ret = ctx->filter->init_dict(ctx, options);
|
||||||
|
|
|
||||||
|
|
@ -300,13 +300,6 @@ typedef struct AVFilter {
|
||||||
*/
|
*/
|
||||||
int (*process_command)(AVFilterContext *, const char *cmd, const char *arg, char *res, int res_len, int flags);
|
int (*process_command)(AVFilterContext *, const char *cmd, const char *arg, char *res, int res_len, int flags);
|
||||||
|
|
||||||
/**
|
|
||||||
* Filter initialization function, alternative to the init()
|
|
||||||
* callback. Args contains the user-supplied parameters, opaque is
|
|
||||||
* used for providing binary data.
|
|
||||||
*/
|
|
||||||
int (*init_opaque)(AVFilterContext *ctx, void *opaque);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter activation function.
|
* Filter activation function.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue