diff options
author | Rodeo <[email protected]> | 2013-06-04 21:28:57 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-06-04 21:28:57 +0000 |
commit | cf4359ccf1a1040e444e6b1dc51220973a7519df (patch) | |
tree | e9570272f0687991cb8c5f0e1a2830f7d25503df /libhb | |
parent | 45caa095e42398b84ceca430af23a33568253ec8 (diff) |
hb_mixdown_*: use meaningful values instead of -1.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5553 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/common.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |