diff options
-rw-r--r-- | libhb/common.c | 2 | ||||
-rw-r--r-- | libhb/common.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libhb/common.c b/libhb/common.c index 7bc3e4088..f1a94267c 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -1634,7 +1634,7 @@ void hb_audio_config_init(hb_audio_config_t * audiocfg) audiocfg->out.bitrate = -1; audiocfg->out.quality = HB_INVALID_AUDIO_QUALITY; audiocfg->out.compression_level = -1; - audiocfg->out.mixdown = -1; + audiocfg->out.mixdown = HB_INVALID_AMIXDOWN; audiocfg->out.dynamic_range_compression = 0; audiocfg->out.gain = 0; audiocfg->out.name = NULL; diff --git a/libhb/common.h b/libhb/common.h index eea705c1e..5b2fc08fa 100644 --- a/libhb/common.h +++ b/libhb/common.h @@ -434,6 +434,8 @@ struct hb_audio_config_s { enum { + // make sure audio->config.out.mixdown isn't treated as unsigned + HB_INVALID_AMIXDOWN = -1, HB_AMIXDOWN_NONE = 0, HB_AMIXDOWN_MONO, HB_AMIXDOWN_STEREO, |