mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-29 10:43:15 +00:00
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:
parent
9c8aeacf82
commit
1225b67fc9
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user