Join declaration and assignment

This commit is contained in:
Stepan Goremykin 2023-10-08 01:16:43 +02:00
parent 3259d484ff
commit 2d7835c848
2 changed files with 2 additions and 6 deletions

View File

@ -1745,11 +1745,9 @@ namespace MediaBrowser.Controller.MediaEncoding
// Values 0-3, 0 being highest quality but slower // Values 0-3, 0 being highest quality but slower
var profileScore = 0; var profileScore = 0;
string crf;
var qmin = "0"; var qmin = "0";
var qmax = "50"; var qmax = "50";
var crf = "10";
crf = "10";
if (isVc1) if (isVc1)
{ {

View File

@ -625,9 +625,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
private string GetImageResolutionParameter() private string GetImageResolutionParameter()
{ {
string imageResolutionParameter; var imageResolutionParameter = _serverConfig.Configuration.ChapterImageResolution switch
imageResolutionParameter = _serverConfig.Configuration.ChapterImageResolution switch
{ {
ImageResolution.P144 => "256x144", ImageResolution.P144 => "256x144",
ImageResolution.P240 => "426x240", ImageResolution.P240 => "426x240",