From 5c74914a35f5a0b2de7088da232bbcbb39b106d6 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 3 Sep 2016 11:42:28 +0100 Subject: [PATCH] WinGui: Add initial support for libopus audio encoder. --- win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs | 1 + .../HandBrakeWPF/Services/Encode/Model/Models/AudioEncoder.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs index 3eabe2217..0e538b5e3 100644 --- a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs @@ -69,6 +69,7 @@ namespace HandBrakeWPF.Converters.Audio encoders.Remove(AudioEncoder.ffflac); encoders.Remove(AudioEncoder.ffflac24); encoders.Remove(AudioEncoder.FlacPassthru); + encoders.Remove(AudioEncoder.Opus); } if (parameter != null && parameter.ToString() == "True") diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioEncoder.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioEncoder.cs index fe56a1e14..3a3097521 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioEncoder.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioEncoder.cs @@ -85,5 +85,9 @@ namespace HandBrakeWPF.Services.Encode.Model.Models [Display(Name = "FLAC Passthru")] [ShortName("copy:flac")] FlacPassthru, + + [Display(Name = "Opus (libopus)")] + [ShortName("opus")] + Opus, } } -- 2.40.0