Merge pull request #1909 from KerryRJ/FixDvdsFailingToPlay

Fix System.NullReferenceException when playing Dvds copied to HDD
This commit is contained in:
Bond-009 2019-10-20 17:10:43 +02:00 committed by GitHub
commit fdb0c3a1df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1173,7 +1173,6 @@ namespace MediaBrowser.Controller.MediaEncoding
{
bitrate = GetMinBitrate(videoStream.BitRate.Value, bitrate.Value);
}
}
if (bitrate.HasValue)
{
@ -1186,6 +1185,7 @@ namespace MediaBrowser.Controller.MediaEncoding
bitrate = Math.Min(bitrate.Value, request.VideoBitRate.Value);
}
}
}
return bitrate;
}