diff options
author | James Almer <jamrial@gmail.com> | 2022-04-09 17:14:01 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-04-12 11:09:59 -0300 |
commit | b64043a83d5792d227bee9a01e9360fd5de404e3 (patch) | |
tree | 88399eff93d2c79b0dacd07c0a63fbe5765cc7f2 /libavfilter | |
parent | 1405b65d22d8e05ae8bb74fc13e275be2ae6b9f9 (diff) | |
download | ffmpeg-b64043a83d5792d227bee9a01e9360fd5de404e3.tar.gz |
avfilter/vf_drawbox: remove redefinition of DrawBoxContext typedef
It's forbidden in C99.
Should fix compilation with old non C11 compilers.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_drawbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c index a4fe0b8abd..65bd039d65 100644 --- a/libavfilter/vf_drawbox.c +++ b/libavfilter/vf_drawbox.c @@ -73,9 +73,9 @@ enum var_name { VARS_NB }; -typedef struct DrawBoxContext DrawBoxContext; +struct DrawBoxContext; -typedef int (*PixelBelongsToRegion)(DrawBoxContext *s, int x, int y); +typedef int (*PixelBelongsToRegion)(struct DrawBoxContext *s, int x, int y); typedef struct DrawBoxContext { const AVClass *class; @@ -96,7 +96,7 @@ typedef struct DrawBoxContext { int step; enum AVFrameSideDataType box_source; - void (*draw_region)(AVFrame *frame, DrawBoxContext *ctx, int left, int top, int right, int down, + void (*draw_region)(AVFrame *frame, struct DrawBoxContext *ctx, int left, int top, int right, int down, PixelBelongsToRegion pixel_belongs_to_region); } DrawBoxContext; |