diff options
| author | gnattu <gnattu@users.noreply.github.com> | 2024-09-17 21:08:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-17 07:08:16 -0600 |
| commit | 41ac5f8d76ce11a852e4dafbf20ad57d63d55f96 (patch) | |
| tree | 9b82141c73ffa2d0e18674dfd16da2ae439f279b /MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | |
| parent | 93b40b04cb505a5a9e12272e71834c1eac397e14 (diff) | |
Fix subtitle dar comparison when number not exact (#12660)
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index b186e3e53..88aa888a1 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -3015,7 +3015,7 @@ namespace MediaBrowser.Controller.MediaEncoding var subtitleDar = (double)subtitleWidth.Value / subtitleHeight.Value; // 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"; } |
