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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-09-19 22:46:52 +02:00
parent 9c8aeacf82
commit 1225b67fc9

View File

@ -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];
}