mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
Fix System.NullReferenceException when playing Dvds copied to HDD
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user