Commit 848ce6f0 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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

parent 15f50ccc
......@@ -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 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment