|
@@ -897,7 +897,7 @@ namespace MediaBrowser.Model.Dlna
|
|
|
|
|
|
var appliedVideoConditions = options.Profile.CodecProfiles
|
|
|
.Where(i => i.Type == CodecType.Video &&
|
|
|
- i.ContainsAnyCodec(videoStream?.Codec, container) &&
|
|
|
+ i.ContainsAnyCodec(videoCodec, container) &&
|
|
|
i.ApplyConditions.All(applyCondition => ConditionProcessor.IsVideoConditionSatisfied(applyCondition, width, height, bitDepth, videoBitrate, videoProfile, videoRangeType, videoLevel, videoFramerate, packetLength, timestamp, isAnamorphic, isInterlaced, refFrames, numVideoStreams, numAudioStreams, videoCodecTag, isAvc)))
|
|
|
// Reverse codec profiles for backward compatibility - first codec profile has higher priority
|
|
|
.Reverse();
|
|
@@ -930,7 +930,7 @@ namespace MediaBrowser.Model.Dlna
|
|
|
|
|
|
var appliedAudioConditions = options.Profile.CodecProfiles
|
|
|
.Where(i => i.Type == CodecType.VideoAudio &&
|
|
|
- i.ContainsAnyCodec(audioStream?.Codec, container) &&
|
|
|
+ i.ContainsAnyCodec(audioCodec, container) &&
|
|
|
i.ApplyConditions.All(applyCondition => ConditionProcessor.IsVideoAudioConditionSatisfied(applyCondition, audioChannels, inputAudioBitrate, inputAudioSampleRate, inputAudioBitDepth, audioProfile, isSecondaryAudio)))
|
|
|
// Reverse codec profiles for backward compatibility - first codec profile has higher priority
|
|
|
.Reverse();
|