Allows for up to 255 colors in blu-ray palette (and not 256)...

This commit is contained in:
niksedk 2014-06-26 14:41:15 +02:00
parent b661a566c3
commit 9564f5a05a

View File

@ -233,7 +233,7 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup
for (int x = 0; x < bitmap.Width; x++) for (int x = 0; x < bitmap.Width; x++)
{ {
Color c = bitmap.GetPixel(x, y); 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); pal.Add(c, pal.Count);
} }
} }