Skip to content
Snippets Groups Projects
Commit 1225b67f authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

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

parent 9c8aeacf
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ const char *av_get_colorspace_name(enum AVColorSpace val) ...@@ -81,7 +81,7 @@ const char *av_get_colorspace_name(enum AVColorSpace val)
[AVCOL_SPC_SMPTE240M] = "smpte240m", [AVCOL_SPC_SMPTE240M] = "smpte240m",
[AVCOL_SPC_YCOCG] = "YCgCo", [AVCOL_SPC_YCOCG] = "YCgCo",
}; };
if (val < 0 || val >= FF_ARRAY_ELEMS(name)) if ((unsigned)val >= FF_ARRAY_ELEMS(name))
return NULL; return NULL;
return name[val]; return name[val];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment