mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-30 19:55:08 -04:00
Fix subtitle dar comparison when number not exact (#12660)
This commit is contained in:
parent
93b40b04cb
commit
41ac5f8d76
@ -3015,7 +3015,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
var subtitleDar = (double)subtitleWidth.Value / subtitleHeight.Value;
|
var subtitleDar = (double)subtitleWidth.Value / subtitleHeight.Value;
|
||||||
|
|
||||||
// No need to add padding when DAR is the same -> 1080p PGSSUB on 2160p video
|
// No need to add padding when DAR is the same -> 1080p PGSSUB on 2160p video
|
||||||
if (videoDar == subtitleDar)
|
if (Math.Abs(videoDar - subtitleDar) < 0.01f)
|
||||||
{
|
{
|
||||||
filters = @"scale,scale={0}:{1}:fast_bilinear";
|
filters = @"scale,scale={0}:{1}:fast_bilinear";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user