diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-19 22:46:52 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-19 22:46:52 +0200 |
commit | 1225b67fc9d769f04a4f7eea310402c1396748b6 (patch) | |
tree | dc2770a3cee194edde7ba54991e274bb72fbe2b1 /libavutil/frame.c | |
parent | 9c8aeacf82a872e1703efdfd2822a4f2d6324c9a (diff) | |
download | ffmpeg-1225b67fc9d769f04a4f7eea310402c1396748b6.tar.gz |
avutil/frame: suppress "comparison of unsigned expression < 0 is always false" warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/frame.c')
-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]; } |