From 6609297110ecd0d3d231af08fa4b1693ceb952ca Mon Sep 17 00:00:00 2001 From: John Andrews Date: Sun, 28 Jan 2024 21:48:00 +1300 Subject: [PATCH] fixing pixel format issue --- VideoNodes/VideoInfoHelper.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/VideoNodes/VideoInfoHelper.cs b/VideoNodes/VideoInfoHelper.cs index acf65495..776a57be 100644 --- a/VideoNodes/VideoInfoHelper.cs +++ b/VideoNodes/VideoInfoHelper.cs @@ -454,14 +454,15 @@ public class VideoInfoHelper /// static string GetDecoderPixelFormat(string line) { - if(line.IndexOf("yuv420p", StringComparison.Ordinal) > 0) - return "yuv420p"; + // only p010le confirmed working so far if(line.IndexOf("p010le", StringComparison.Ordinal) > 0) return "p010le"; - if (line.IndexOf("nv12", StringComparison.Ordinal) >= 0) - return "nv12"; - if (line.IndexOf("yuv444p", StringComparison.Ordinal) >= 0) - return "yuv444p"; + // if(line.IndexOf("yuv420p", StringComparison.Ordinal) > 0) + // return "yuv420p"; + // if (line.IndexOf("nv12", StringComparison.Ordinal) >= 0) + // return "nv12"; + // if (line.IndexOf("yuv444p", StringComparison.Ordinal) >= 0) + // return "yuv444p"; return string.Empty; } } \ No newline at end of file