summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-06-12 07:44:14 -0700
committerGitHub <[email protected]>2017-06-12 07:44:14 -0700
commit74b10b23b0dd902ba718e8848662c9ac4241412c (patch)
tree0c426a0decb5ecbf2d26ec6b0e2d00b4f8526ef8 /libhb/common.h
parent833d0a9658447647e96347621eb1ce42e9b4161e (diff)
Allow audio fallback to be "None" (#623)
* Allow audio fallback to be "None" When audio fallback is "None", a failure to do passthru will result in no output audio track being added. * simplify audio autopassthru fallback logic Drop track when fallback codec is invalid instead of falling back to a default. Since all presets have a fallback set, the default fallback condition would only ever be triggered by an invalid setting.
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 2edbdc697..6aac0bacd 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -681,7 +681,8 @@ struct hb_job_s
/* Audio starts here */
/* Audio Codecs: Update win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/NativeConstants.cs when changing these consts */
#define HB_ACODEC_INVALID 0x00000000
-#define HB_ACODEC_MASK 0x07FFFF00
+#define HB_ACODEC_NONE 0x00000001
+#define HB_ACODEC_MASK 0x07FFFF01
#define HB_ACODEC_LAME 0x00000200
#define HB_ACODEC_VORBIS 0x00000400
#define HB_ACODEC_AC3 0x00000800