From cf4359ccf1a1040e444e6b1dc51220973a7519df Mon Sep 17 00:00:00 2001 From: Rodeo Date: Tue, 4 Jun 2013 21:28:57 +0000 Subject: hb_mixdown_*: use meaningful values instead of -1. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5553 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libhb/common.c') diff --git a/libhb/common.c b/libhb/common.c index 24c98692b..bdfefa3f9 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -1434,7 +1434,7 @@ int hb_mixdown_get_best(uint32_t codec, uint64_t layout, int mixdown) if (codec & HB_ACODEC_PASS_FLAG) return HB_AMIXDOWN_NONE; - int best_mixdown = -1; + int best_mixdown = HB_INVALID_AMIXDOWN; const hb_mixdown_t *audio_mixdown = hb_mixdown_get_next(NULL); // test all non-None mixdowns while the value is <= the requested mixdown // HB_INVALID_AMIXDOWN means the highest supported mixdown was requested @@ -1491,7 +1491,7 @@ int hb_mixdown_get_from_name(const char *name) } fail: - return -1; + return HB_INVALID_AMIXDOWN; } const char* hb_mixdown_get_name(int mixdown) @@ -1820,7 +1820,7 @@ void hb_autopassthru_apply_settings(hb_job_t *job) audio->config.out.bitrate = hb_audio_bitrate_get_default(audio->config.out.codec, audio->config.out.samplerate, - audio->config.out.mixdown ); + audio->config.out.mixdown); audio->config.out.compression_level = hb_audio_compression_get_default(audio->config.out.codec); } -- cgit v1.2.3