1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avfilter/vf_histogram: Change enum to int, which is accessed via AVOption as int

This fixes depending on implementation defined behavior

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-03-18 12:23:39 +01:00
parent 304fdfe9f3
commit 67e1562228

View File

@ -37,7 +37,7 @@ enum HistogramMode {
typedef struct HistogramContext {
const AVClass *class; ///< AVClass context for log and options purpose
enum HistogramMode mode;
int mode; ///< HistogramMode
unsigned histogram[256];
int ncomp;
const uint8_t *bg_color;