Commit 1225b67f authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/frame: suppress "comparison of unsigned expression < 0 is always false" warning

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9c8aeacf
......@@ -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];
}
......
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