avfilter/vf_phase: Change enum to int, which is accessed via AVOption as int
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Mar 2015 18:09:38 +0000 (19:09 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Mar 2015 18:09:38 +0000 (19:09 +0100)
This fixes depending on implementation defined behavior

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_phase.c

index 23b339c..1818355 100644 (file)
@@ -41,7 +41,7 @@ enum PhaseMode {
 
 typedef struct PhaseContext {
     const AVClass *class;
-    enum PhaseMode mode;
+    int mode;                   ///<PhaseMode
     AVFrame *frame; /* previous frame */
     int nb_planes;
     int planeheight[4];