lavc/jpeg2000dec: Use a define to clarify the meaning of a constant.

pull/329/head
Carl Eugen Hoyos 7 years ago
parent 15f50ccc6f
commit 848ce6f0a6
  1. 2
      libavcodec/jpeg2000dec.c

@ -2063,7 +2063,7 @@ static int jp2_find_codestream(Jpeg2000DecoderContext *s)
size = (colour_depth[0] + 7 >> 3) * colour_count +
(colour_depth[1] + 7 >> 3) * colour_count +
(colour_depth[2] + 7 >> 3) * colour_count;
if (colour_count > 256 ||
if (colour_count > AVPALETTE_COUNT ||
colour_channels != 3 ||
colour_depth[0] > 16 ||
colour_depth[1] > 16 ||

Loading…
Cancel
Save