[FFmpeg-cvslog] avutil/avstring: Fix undefined shift

Michael Niedermayer git at videolan.org
Fri Jun 19 02:26:49 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun 19 02:13:08 2015 +0200| [2c881c7d45bc10205912e069d1c25103884a2059] | committer: Michael Niedermayer

avutil/avstring: Fix undefined shift

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c881c7d45bc10205912e069d1c25103884a2059
---

 libavutil/avstring.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/avstring.c b/libavutil/avstring.c
index f785816..b184442 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;
     }



More information about the ffmpeg-cvslog mailing list