add codec tag value

This commit is contained in:
Luke Pulverenti
2015-10-19 12:05:03 -04:00
parent 00bb68d2e8
commit 51c3f270ae
14 changed files with 73 additions and 22 deletions

View File

@@ -20,15 +20,11 @@ namespace MediaBrowser.Model.Dlna
bool? isCabac,
int? refFrames,
int? numVideoStreams,
int? numAudioStreams)
int? numAudioStreams,
string videoCodecTag)
{
switch (condition.Property)
{
case ProfileConditionValue.AudioProfile:
// TODO: Implement
return true;
case ProfileConditionValue.Has64BitOffsets:
return true;
case ProfileConditionValue.IsAnamorphic:
return IsConditionSatisfied(condition, isAnamorphic);
case ProfileConditionValue.IsCabac:
@@ -39,6 +35,8 @@ namespace MediaBrowser.Model.Dlna
return IsConditionSatisfied(condition, videoLevel);
case ProfileConditionValue.VideoProfile:
return IsConditionSatisfied(condition, videoProfile);
case ProfileConditionValue.VideoCodecTag:
return IsConditionSatisfied(condition, videoCodecTag);
case ProfileConditionValue.PacketLength:
return IsConditionSatisfied(condition, packetLength);
case ProfileConditionValue.VideoBitDepth:
@@ -58,7 +56,7 @@ namespace MediaBrowser.Model.Dlna
case ProfileConditionValue.VideoTimestamp:
return IsConditionSatisfied(condition, timestamp);
default:
throw new ArgumentException("Unexpected condition on video file: " + condition.Property);
return true;
}
}