summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorScott <[email protected]>2015-11-22 16:29:56 -0500
committerScott <[email protected]>2015-11-22 16:29:56 -0500
commit48d1efa61ba96071ce12643f23e38a1945f2ae70 (patch)
tree1e2a63a5777584ad70d817fa7a1e86504f98cf48 /win/CS
parent6c731e1353608b909ce1e721e9b31b2fea6f932c (diff)
Quick Fix for the broken Nightly build. Will add bit-depth support at a later point.
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs3
-rw-r--r--win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs1
2 files changed, 3 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs
index 704e794ef..3540bb368 100644
--- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs
+++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeUtils.cs
@@ -279,13 +279,14 @@ namespace HandBrake.ApplicationServices.Interop
}
IntPtr ptr = HBFunctions.hb_x264_param_unparse(
+ 8,
preset,
string.Join(",", tunes),
extraOptions,
profile,
level,
width,
- height);
+ height); // TODO add bit-depth support.
string x264Settings = Marshal.PtrToStringAnsi(ptr);
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs b/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs
index d8d8289f1..03606e587 100644
--- a/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs
+++ b/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs
@@ -376,6 +376,7 @@ namespace HandBrake.ApplicationServices.Interop.HbLib
[DllImport("hb.dll", EntryPoint = "hb_x264_param_unparse", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr hb_x264_param_unparse(
+ int bit_depth,
[In] [MarshalAs(UnmanagedType.LPStr)] string x264_preset,
[In] [MarshalAs(UnmanagedType.LPStr)] string x264_tune,
[In] [MarshalAs(UnmanagedType.LPStr)] string x264_encopts,