aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-13 15:27:09 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-13 15:27:09 -0500
commit3c55747cd63fd8a69f02efbe9ac48ce76d373b81 (patch)
treee8dd7d234fcdbd115286a0d2c951281d7f51d16c /MediaBrowser.Api/Playback/BaseStreamingService.cs
parent95341c5c96059e4bd70f290ff05ae3abc9c49257 (diff)
fixes #2285 - [BUG] VAAPI Transcoding (Does not work with certain codecs)
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index bac612a5b..690505869 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -336,9 +336,12 @@ namespace MediaBrowser.Api.Playback
{
// vaapi will throw an error with this input
// [vaapi @ 0x7faed8000960] No VAAPI support for codec mpeg4 profile -99.
- if (string.Equals(videoStream.Codec, "mpeg4", StringComparison.OrdinalIgnoreCase) && videoStream.Level == -99)
+ if (string.Equals(videoStream.Codec, "mpeg4", StringComparison.OrdinalIgnoreCase))
{
- return false;
+ if (videoStream.Level == -99 || videoStream.Level == 15)
+ {
+ return false;
+ }
}
}
return true;