diff options
-rw-r--r-- | libavutil/frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 0ce84d2a51..654f17428b 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -81,7 +81,7 @@ const char *av_get_colorspace_name(enum AVColorSpace val) [AVCOL_SPC_SMPTE240M] = "smpte240m", [AVCOL_SPC_YCOCG] = "YCgCo", }; - if (val < 0 || val >= FF_ARRAY_ELEMS(name)) + if ((unsigned)val >= FF_ARRAY_ELEMS(name)) return NULL; return name[val]; } |