From 9564f5a05a94f7493bc83f4bc720624db62f7eef Mon Sep 17 00:00:00 2001 From: niksedk Date: Thu, 26 Jun 2014 14:41:15 +0200 Subject: [PATCH] Allows for up to 255 colors in blu-ray palette (and not 256)... --- src/Logic/BluRaySup/BluRaySupPicture.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logic/BluRaySup/BluRaySupPicture.cs b/src/Logic/BluRaySup/BluRaySupPicture.cs index 4523ab751..aae51eb5e 100644 --- a/src/Logic/BluRaySup/BluRaySupPicture.cs +++ b/src/Logic/BluRaySup/BluRaySupPicture.cs @@ -233,7 +233,7 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup for (int x = 0; x < bitmap.Width; x++) { Color c = bitmap.GetPixel(x, y); - if (!pal.ContainsKey(c) && c != Color.Transparent && pal.Count < 255) + if (!pal.ContainsKey(c) && c != Color.Transparent && pal.Count < 254) pal.Add(c, pal.Count); } }