From 2c881c7d45bc10205912e069d1c25103884a2059 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 19 Jun 2015 02:13:08 +0200 Subject: [PATCH] avutil/avstring: Fix undefined shift Signed-off-by: Michael Niedermayer --- libavutil/avstring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/avstring.c b/libavutil/avstring.c index f785816063..b184442306 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -408,7 +408,7 @@ int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end, goto end; } - if (code >= 1<<31) { + if (code >= 1U<<31) { ret = AVERROR(EILSEQ); /* out-of-range value */ goto end; }