summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-05-22 12:54:32 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-05-22 12:54:32 +0200
commit848ce6f0a6075485720475ade0385a359f4700b5 (patch)
treedbef50d77899218b975e9651b5f51b94a6e16dbc /libavcodec
parent15f50ccc6f3fb9358aa2d63b7ce8036764f197b0 (diff)
lavc/jpeg2000dec: Use a define to clarify the meaning of a constant.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/jpeg2000dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 12dcc5c6f5..5fa9b9de8f 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/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 ||