Fix System.NullReferenceException when playing Dvds copied to HDD

This commit is contained in:
KerryJ 2019-10-17 11:31:11 +02:00
parent d8c3b26fa6
commit ef3df7baaf
1 changed files with 9 additions and 9 deletions

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;
}