diff options
author | randomengy <[email protected]> | 2011-07-24 19:04:13 +0000 |
---|---|---|
committer | randomengy <[email protected]> | 2011-07-24 19:04:13 +0000 |
commit | d03140dd43594dafbf6f7f474ee06b45afc1b903 (patch) | |
tree | 700ad66da60f01e9d1b399dbead00f91f1d8c039 /win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs | |
parent | 2f8559933d48333e463a548152197db4cb926971 (diff) |
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
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs | 7 |
1 files changed, 2 insertions, 5 deletions
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
{
/// <summary>
/// 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;
|