mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add comments noting that comma separated codec list is not supported in pure audio transcoding for now
This commit is contained in:
parent
b0f44f1d5a
commit
096e1b2970
@ -208,6 +208,10 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
|
|
||||||
var longBitrate = Math.Min(transcodingBitrate, playlistItem.AudioBitrate ?? transcodingBitrate);
|
var longBitrate = Math.Min(transcodingBitrate, playlistItem.AudioBitrate ?? transcodingBitrate);
|
||||||
playlistItem.AudioBitrate = longBitrate > int.MaxValue ? int.MaxValue : Convert.ToInt32(longBitrate);
|
playlistItem.AudioBitrate = longBitrate > int.MaxValue ? int.MaxValue : Convert.ToInt32(longBitrate);
|
||||||
|
|
||||||
|
// Pure audio transcoding does not support comma separated list of transcoding codec at the moment.
|
||||||
|
// So just use the AudioCodec as is would be safe enough as the _transcoderSupport.CanEncodeToAudioCodec
|
||||||
|
// would fail so this profile will not even be picked up.
|
||||||
if (playlistItem.AudioCodecs.Count == 0 && !string.IsNullOrWhiteSpace(transcodingProfile.AudioCodec))
|
if (playlistItem.AudioCodecs.Count == 0 && !string.IsNullOrWhiteSpace(transcodingProfile.AudioCodec))
|
||||||
{
|
{
|
||||||
playlistItem.AudioCodecs = [transcodingProfile.AudioCodec];
|
playlistItem.AudioCodecs = [transcodingProfile.AudioCodec];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user