From d03140dd43594dafbf6f7f474ee06b45afc1b903 Mon Sep 17 00:00:00 2001 From: randomengy Date: Sun, 24 Jul 2011 19:04:13 +0000 Subject: Add DTS-HD and DRC to HandBrakeInterop. Update libhb audio structures. Fix test project build failures. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4138 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs') diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs index e76d41e82..5b4735ff8 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs @@ -17,7 +17,7 @@ namespace HandBrake.Interop using HandBrake.Interop.Model.Encoding; using HandBrake.Interop.SourceData; - public static class HandBrakeUtils + public static class HandBrakeUtils { /// /// Estimated overhead in bytes for each frame in output container. @@ -212,7 +212,6 @@ namespace HandBrake.Interop case AudioEncoder.Ac3: case AudioEncoder.Passthrough: case AudioEncoder.Ac3Passthrough: - case AudioEncoder.DtsPassthrough: return 1536; } @@ -240,9 +239,7 @@ namespace HandBrake.Interop int samplesPerFrame = HandBrakeUtils.GetAudioSamplesPerFrame(encoding.Encoder); int audioBitrate; - if (encoding.Encoder == AudioEncoder.Passthrough || - encoding.Encoder == AudioEncoder.Ac3Passthrough || - encoding.Encoder == AudioEncoder.DtsPassthrough) + if (Utilities.IsPassthrough(encoding.Encoder)) { // Input bitrate is in bits/second. audioBitrate = track.Bitrate / 8; -- cgit v1.2.3