mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-30 01:09:09 +02:00
Fix System.NullReferenceException when playing Dvds copied to HDD
This commit is contained in:
parent
d8c3b26fa6
commit
ef3df7baaf
|
@ -1173,7 +1173,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
{
|
{
|
||||||
bitrate = GetMinBitrate(videoStream.BitRate.Value, bitrate.Value);
|
bitrate = GetMinBitrate(videoStream.BitRate.Value, bitrate.Value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (bitrate.HasValue)
|
if (bitrate.HasValue)
|
||||||
{
|
{
|
||||||
|
@ -1186,6 +1185,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
bitrate = Math.Min(bitrate.Value, request.VideoBitRate.Value);
|
bitrate = Math.Min(bitrate.Value, request.VideoBitRate.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return bitrate;
|
return bitrate;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue