1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-14 22:22:59 +02:00

lavfi: do not pass opaque field to init functions

Fix signature mismatch warnings.
This commit is contained in:
Stefano Sabatini 2012-07-06 00:45:36 +02:00
parent 2d42008757
commit abb0a9982f
8 changed files with 8 additions and 8 deletions

View File

@ -57,7 +57,7 @@ static const AVOption showwaves_options[] = {
AVFILTER_DEFINE_CLASS(showwaves); AVFILTER_DEFINE_CLASS(showwaves);
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
ShowWavesContext *showwaves = ctx->priv; ShowWavesContext *showwaves = ctx->priv;
int err; int err;

View File

@ -43,7 +43,7 @@ typedef struct {
struct thumb_frame *frames; ///< the n_frames frames struct thumb_frame *frames; ///< the n_frames frames
} ThumbContext; } ThumbContext;
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
ThumbContext *thumb = ctx->priv; ThumbContext *thumb = ctx->priv;

View File

@ -39,7 +39,7 @@ typedef struct {
#define REASONABLE_SIZE 1024 #define REASONABLE_SIZE 1024
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
TileContext *tile = ctx->priv; TileContext *tile = ctx->priv;
int r; int r;

View File

@ -80,7 +80,7 @@ static int query_formats(AVFilterContext *ctx)
return 0; return 0;
} }
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
TInterlaceContext *tinterlace = ctx->priv; TInterlaceContext *tinterlace = ctx->priv;
int i; int i;

View File

@ -158,7 +158,7 @@ static int init_pattern_from_file(AVFilterContext *ctx)
return init_pattern_from_string(ctx); return init_pattern_from_string(ctx);
} }
static int init(AVFilterContext *ctx, const char *args, void *opaque) static int init(AVFilterContext *ctx, const char *args)
{ {
CellAutoContext *cellauto = ctx->priv; CellAutoContext *cellauto = ctx->priv;
AVRational frame_rate; AVRational frame_rate;

View File

@ -219,7 +219,7 @@ static int init_pattern_from_file(AVFilterContext *ctx)
return 0; return 0;
} }
static int init(AVFilterContext *ctx, const char *args, void *opaque) static int init(AVFilterContext *ctx, const char *args)
{ {
LifeContext *life = ctx->priv; LifeContext *life = ctx->priv;
AVRational frame_rate; AVRational frame_rate;

View File

@ -108,7 +108,7 @@ static const AVOption mandelbrot_options[] = {
AVFILTER_DEFINE_CLASS(mandelbrot); AVFILTER_DEFINE_CLASS(mandelbrot);
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
MBContext *mb = ctx->priv; MBContext *mb = ctx->priv;
AVRational rate_q; AVRational rate_q;

View File

@ -256,7 +256,7 @@ static void ring2_test(uint8_t *dst, int dst_linesize, int off)
} }
} }
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
MPTestContext *test = ctx->priv; MPTestContext *test = ctx->priv;
AVRational frame_rate_q; AVRational frame_rate_q;