aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-19 22:46:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-19 22:46:52 +0200
commit1225b67fc9d769f04a4f7eea310402c1396748b6 (patch)
treedc2770a3cee194edde7ba54991e274bb72fbe2b1
parent9c8aeacf82a872e1703efdfd2822a4f2d6324c9a (diff)
downloadffmpeg-1225b67fc9d769f04a4f7eea310402c1396748b6.tar.gz
avutil/frame: suppress "comparison of unsigned expression < 0 is always false" warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/frame.c2
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];
}