Browse Source

disable anamorphic edge case in scaling calculations (#971)

pull/972/head
Jason Dove 4 years ago committed by GitHub
parent
commit
28f2b9b27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 28
      ErsatzTV.FFmpeg/MediaStream.cs

28
ErsatzTV.FFmpeg/MediaStream.cs

@ -50,32 +50,8 @@ public record VideoStream( @@ -50,32 +50,8 @@ public record VideoStream(
}
}
// TODO: figure out what's really causing this
public bool IsAnamorphicEdgeCase
{
get
{
try
{
string[] split = SampleAspectRatio.Split(':');
var num = double.Parse(split[0]);
var den = double.Parse(split[1]);
if (num <= den)
{
return false;
}
double sar = num / den;
double res = (double)FrameSize.Width / FrameSize.Height;
return res - sar > 0.01;
}
catch
{
return false;
}
}
}
// TODO: figure out what's really causing this, then re-enable if needed
public bool IsAnamorphicEdgeCase => false;
public FrameSize SquarePixelFrameSize(FrameSize resolution)
{

Loading…
Cancel
Save