mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-31 14:33:54 -04:00
Merge pull request #5251 from crobibero/vpp-null-ref
Fix vpp null reference (cherry picked from commit 467cd9227e63ed596f7d8b40b27efc4bf48eb02a) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
a1773ce97b
commit
557a091865
@ -131,6 +131,12 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
private bool IsVppTonemappingSupported(EncodingJobInfo state, EncodingOptions options)
|
private bool IsVppTonemappingSupported(EncodingJobInfo state, EncodingOptions options)
|
||||||
{
|
{
|
||||||
var videoStream = state.VideoStream;
|
var videoStream = state.VideoStream;
|
||||||
|
if (videoStream == null)
|
||||||
|
{
|
||||||
|
// Remote stream doesn't have media info, disable vpp tonemapping.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var codec = videoStream.Codec;
|
var codec = videoStream.Codec;
|
||||||
if (string.Equals(options.HardwareAccelerationType, "vaapi", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(options.HardwareAccelerationType, "vaapi", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user