diff options
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Json')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs index 6d10b64eb..51b29533f 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Factories/EncodeFactory.cs @@ -307,19 +307,22 @@ namespace HandBrake.Interop.Json.Factories Name = item.Name,
};
- if (item.EncodeRateType == AudioEncodeRateType.Quality)
+ if (!item.IsPassthru)
{
- audioTrack.Quality = item.Quality;
- }
+ if (item.EncodeRateType == AudioEncodeRateType.Quality)
+ {
+ audioTrack.Quality = item.Quality;
+ }
- if (item.EncodeRateType == AudioEncodeRateType.Compression)
- {
- audioTrack.CompressionLevel = item.Compression;
- }
+ if (item.EncodeRateType == AudioEncodeRateType.Compression)
+ {
+ audioTrack.CompressionLevel = item.Compression;
+ }
- if (item.EncodeRateType == AudioEncodeRateType.Bitrate)
- {
- audioTrack.Bitrate = item.Bitrate;
+ if (item.EncodeRateType == AudioEncodeRateType.Bitrate)
+ {
+ audioTrack.Bitrate = item.Bitrate;
+ }
}
audio.AudioList.Add(audioTrack);
|