Commit d545668e authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/af_volume: Change enums to int, which are accessed via AVOption as int

This fixes depending on implementation defined behavior
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 27a5d09c
...@@ -68,13 +68,13 @@ enum ReplayGainType { ...@@ -68,13 +68,13 @@ enum ReplayGainType {
typedef struct VolumeContext { typedef struct VolumeContext {
const AVClass *class; const AVClass *class;
AVFloatDSPContext *fdsp; AVFloatDSPContext *fdsp;
enum PrecisionType precision; int precision;
enum EvalMode eval_mode; int eval_mode;
const char *volume_expr; const char *volume_expr;
AVExpr *volume_pexpr; AVExpr *volume_pexpr;
double var_values[VAR_VARS_NB]; double var_values[VAR_VARS_NB];
enum ReplayGainType replaygain; int replaygain;
double replaygain_preamp; double replaygain_preamp;
int replaygain_noclip; int replaygain_noclip;
double volume; double volume;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment