The Free Software Media System - Server Backend & API
Force channel to be >= 1
gnattu24910348a164
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.csindex ce2414cd1a..2c35f0a1ec 100644--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs+++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs@@ -2588,7 +2588,7 @@ namespace MediaBrowser.Controller.MediaEncodingpublic string GetAudioVbrModeParam(string encoder, int bitrate, int channels){- var bitratePerChannel = bitrate / channels;+ var bitratePerChannel = bitrate / Math.Max(channels, 1);if (string.Equals(encoder, "libfdk_aac", StringComparison.OrdinalIgnoreCase)){return " -vbr:a " + bitratePerChannel switch