[FFmpeg-cvslog] lavfi/perms: remove unecessary indirection after f7324c06.
Clément Bœsch
git at videolan.org
Tue Mar 26 02:49:48 CET 2013
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Mar 26 02:24:03 2013 +0100| [e600d0628ec2d23341a72e6b64311338208699cf] | committer: Clément Bœsch
lavfi/perms: remove unecessary indirection after f7324c06.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e600d0628ec2d23341a72e6b64311338208699cf
---
libavfilter/f_perms.c | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
diff --git a/libavfilter/f_perms.c b/libavfilter/f_perms.c
index 74c6e87..e3f974c 100644
--- a/libavfilter/f_perms.c
+++ b/libavfilter/f_perms.c
@@ -50,7 +50,7 @@ static const AVOption options[] = {
{ NULL }
};
-static av_cold int init(AVFilterContext *ctx, const char *args, const AVClass *class)
+static av_cold int init(AVFilterContext *ctx, const char *args)
{
PermsContext *perms = ctx->priv;
@@ -108,11 +108,6 @@ static const char *const shorthand[] = { "mode", NULL };
#define aperms_options options
AVFILTER_DEFINE_CLASS(aperms);
-static av_cold int aperms_init(AVFilterContext *ctx, const char *args)
-{
- return init(ctx, args, &aperms_class);
-}
-
static const AVFilterPad aperms_inputs[] = {
{
.name = "default",
@@ -133,7 +128,7 @@ static const AVFilterPad aperms_outputs[] = {
AVFilter avfilter_af_aperms = {
.name = "aperms",
.description = NULL_IF_CONFIG_SMALL("Set permissions for the output audio frame."),
- .init = aperms_init,
+ .init = init,
.priv_size = sizeof(PermsContext),
.inputs = aperms_inputs,
.outputs = aperms_outputs,
@@ -147,11 +142,6 @@ AVFilter avfilter_af_aperms = {
#define perms_options options
AVFILTER_DEFINE_CLASS(perms);
-static av_cold int perms_init(AVFilterContext *ctx, const char *args)
-{
- return init(ctx, args, &perms_class);
-}
-
static const AVFilterPad perms_inputs[] = {
{
.name = "default",
@@ -172,7 +162,7 @@ static const AVFilterPad perms_outputs[] = {
AVFilter avfilter_vf_perms = {
.name = "perms",
.description = NULL_IF_CONFIG_SMALL("Set permissions for the output video frame."),
- .init = perms_init,
+ .init = init,
.priv_size = sizeof(PermsContext),
.inputs = perms_inputs,
.outputs = perms_outputs,
More information about the ffmpeg-cvslog
mailing list