sync updates

This commit is contained in:
Luke Pulverenti
2014-12-24 01:28:40 -05:00
parent 381aa7adc5
commit 36577ac42e
15 changed files with 73 additions and 49 deletions

View File

@@ -729,7 +729,8 @@ namespace MediaBrowser.Api.Playback
return Math.Min(request.MaxAudioChannels.Value, audioStream.Channels.Value);
}
return request.MaxAudioChannels.Value;
// If we don't have any media info then limit it to 5 to prevent encoding errors due to asking for too many channels
return Math.Min(request.MaxAudioChannels.Value, 5);
}
return request.AudioChannels;