You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
@@ -73,9 +73,9 @@ enum var_name {
|
|||||||
VARS_NB
|
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 {
|
typedef struct DrawBoxContext {
|
||||||
const AVClass *class;
|
const AVClass *class;
|
||||||
@@ -96,7 +96,7 @@ typedef struct DrawBoxContext {
|
|||||||
int step;
|
int step;
|
||||||
enum AVFrameSideDataType box_source;
|
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);
|
PixelBelongsToRegion pixel_belongs_to_region);
|
||||||
} DrawBoxContext;
|
} DrawBoxContext;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user