Skip to content
Snippets Groups Projects
Commit fa7084a0 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avfilter/vf_edgedetect: Change enums to int, which are accessed via AVOption as int


This fixes depending on implementation defined behavior

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 08880c1f
Branches
Tags
No related merge requests found
...@@ -50,7 +50,7 @@ typedef struct { ...@@ -50,7 +50,7 @@ typedef struct {
int nb_planes; int nb_planes;
double low, high; double low, high;
uint8_t low_u8, high_u8; uint8_t low_u8, high_u8;
enum FilterMode mode; int mode;
} EdgeDetectContext; } EdgeDetectContext;
#define OFFSET(x) offsetof(EdgeDetectContext, x) #define OFFSET(x) offsetof(EdgeDetectContext, x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment