Apply suggestions from code review

Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
This commit is contained in:
Nyanmisaka
2020-11-14 10:19:41 +00:00
committed by GitHub
parent fc89b7e641
commit 06670351ae
3 changed files with 5 additions and 5 deletions

View File

@@ -448,7 +448,7 @@ namespace Jellyfin.Api.Controllers
|| string.Equals(state.MediaSource.Container, "hls", StringComparison.OrdinalIgnoreCase)))
{
bitStreamArgs = _encodingHelper.GetBitStreamArgs(state.AudioStream);
bitStreamArgs = !string.IsNullOrEmpty(bitStreamArgs) ? " " + bitStreamArgs : string.Empty;
bitStreamArgs = string.IsNullOrEmpty(bitStreamArgs) ? string.Empty : " " + bitStreamArgs;;
}
return "-acodec copy -strict -2" + bitStreamArgs;