]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/avf_showwaves: Change enums to int, which are accessed via AVOption as int
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Mar 2015 01:44:04 +0000 (02:44 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Mar 2015 01:44:04 +0000 (02:44 +0100)
This fixes depending on implementation defined behavior

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

index cffa883003a155a771eec295dd47065fe3f38a03..9cddc514b36f355ae789415720fc9d9e8651177a 100644 (file)
@@ -50,7 +50,7 @@ typedef struct {
     int req_fullfilled;
     int n;
     int sample_count_mod;
-    enum ShowWavesMode mode;
+    int mode;                   ///< ShowWavesMode
     int split_channels;
     void (*draw_sample)(uint8_t *buf, int height, int linesize,
                         int16_t sample, int16_t *prev_y, int intensity);