We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e936c8d commit c92f558Copy full SHA for c92f558
libavcodec/dvdsubdec.c
@@ -185,7 +185,7 @@ static void guess_palette(DVDSubContext* ctx,
185
for(i = 0; i < 4; i++) {
186
if (alpha[i] != 0) {
187
if (!color_used[colormap[i]]) {
188
- level = level_map[nb_opaque_colors][j];
+ level = level_map[nb_opaque_colors - 1][j];
189
r = (((subtitle_color >> 16) & 0xff) * level) >> 8;
190
g = (((subtitle_color >> 8) & 0xff) * level) >> 8;
191
b = (((subtitle_color >> 0) & 0xff) * level) >> 8;
0 commit comments