summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-07-27 23:37:16 +0000
committerRodeo <[email protected]>2012-07-27 23:37:16 +0000
commit93dee4d1960fa54a3c08d889f31cd56db1dfbb49 (patch)
tree9d1def3723b9fb171a72d9caaab534ad71965472 /libhb/common.h
parent27900123ecd9bf89122320f3be6c9d7c3c8c5715 (diff)
Introduce a negative HB_INVALID_AMIXDOWN.
Having the audio->config.out.mixdown start at 0 caused it to be treated as usigned (under OS X at least), causing the sanitizing code in work.c to fail: line 820, (audio->config.out.mixdown <= 0) would evaluate as false, and so the best mixdown was being set instead of the default one. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4878 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h2
1 files changed, 2 insertions, 0 deletions
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,