Something’s wrong with a picture size of 720 x 480
V3022 CWE-570 Expression ‘param.Bitmap.Width == 720 && param.Bitmap.Width == 480’ is always false. Probably the ‘||’ operator should be used here. ExportPngXml.cs 1808
private static string FormatFabTime(TimeCode time, MakeBitmapParameter param) { if (param.Bitmap.Width == 720 && param.Bitmap.Width == 480) return $"...."; // drop frame if (Math.Abs(param.... - 24 * (999 / 1000)) < 0.01 || Math.Abs(param.... - 29 * (999 / 1000)) < 0.01 || Math.Abs(param.... - 59 * (999 / 1000)) < 0.01) return $"...."; return $"...."; }
There was a confusion between Width and Height, and the width was compared twice with the values of 720 and 480.
Please click here to see more bugs from this project.