diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-02 23:07:54 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-02 04:08:14 +0100 |
commit | 7ff296be9f418836f946adff03daccf86d3da3be (patch) | |
tree | da22e40085552b6a050d009aa42383162ac31bcc /libavfilter/avf_showspectrum.c | |
parent | cf729b248973fdc6cbf86efa7b3852ea98c40062 (diff) | |
download | ffmpeg-7ff296be9f418836f946adff03daccf86d3da3be.tar.gz |
avfilter/avf_showspectrum: Change enums to int, which are accessed via AVOption as int
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r-- | libavfilter/avf_showspectrum.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 24116dacf8..49491b6646 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -48,16 +48,16 @@ typedef struct { int nb_display_channels; int channel_height; int sliding; ///< 1 if sliding mode, 0 otherwise - enum DisplayMode mode; ///< channel display mode - enum ColorMode color_mode; ///< display color scheme - enum DisplayScale scale; + int mode; ///< channel display mode + int color_mode; ///< display color scheme + int scale; float saturation; ///< color saturation multiplier int xpos; ///< x position (current column) RDFTContext *rdft; ///< Real Discrete Fourier Transform context int rdft_bits; ///< number of bits (RDFT window size = 1<<rdft_bits) FFTSample **rdft_data; ///< bins holder for each (displayed) channels float *window_func_lut; ///< Window function LUT - enum WindowFunc win_func; + int win_func; float *combine_buffer; ///< color combining buffer (3 * h items) } ShowSpectrumContext; |