Merge pull request #1909 from KerryRJ/FixDvdsFailingToPlay

Fix System.NullReferenceException when playing Dvds copied to HDD

(cherry picked from commit fdb0c3a1df)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
pull/2095/head
Bond-009 5 years ago committed by Joshua Boniface
parent 0212c0b85f
commit 86a50367b2

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

Loading…
Cancel
Save