From 2a34b5099bb4c7b4ebf02b047ad3f91792368c36 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 7 Mar 2015 02:44:04 +0100 Subject: [PATCH] avfilter/avf_showwaves: Change enums to int, which are accessed via AVOption as int This fixes depending on implementation defined behavior Signed-off-by: Michael Niedermayer --- libavfilter/avf_showwaves.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index cffa883003..9cddc514b3 100644 --- a/libavfilter/avf_showwaves.c +++ b/libavfilter/avf_showwaves.c @@ -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);