diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-13 15:27:09 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-13 15:27:09 -0500 |
| commit | 3c55747cd63fd8a69f02efbe9ac48ce76d373b81 (patch) | |
| tree | e8dd7d234fcdbd115286a0d2c951281d7f51d16c /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 95341c5c96059e4bd70f290ff05ae3abc9c49257 (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.cs | 7 |
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; |
