Browse Source

quickdraw: Make the palette opaque

Additional overflow fix by Michael Niedermayer <michaelni@gmx.at>.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
tags/n2.7
Carl Eugen Hoyos Vittorio Giovara 10 years ago
parent
commit
d0dce15da3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/qdrw.c

+ 1
- 1
libavcodec/qdrw.c View File

@@ -61,7 +61,7 @@ static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc,
bytestream2_skip(gbc, 1);
b = bytestream2_get_byte(gbc);
bytestream2_skip(gbc, 1);
pal[idx] = (r << 16) | (g << 8) | b;
pal[idx] = (0xFFU << 24) | (r << 16) | (g << 8) | b;
}
return 0;
}


Loading…
Cancel
Save