[FFmpeg-devel] [PATCH 1/2] avcodec/movtextenc: fix undefined shift

James Almer jamrial at gmail.com
Sat Jul 25 03:13:59 CEST 2015


Silences warnings when using -Wshift-overflow (GCC 6+)

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/movtextenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/movtextenc.c b/libavcodec/movtextenc.c
index 3219858..144e6d7 100644
--- a/libavcodec/movtextenc.c
+++ b/libavcodec/movtextenc.c
@@ -289,7 +289,7 @@ static void mov_text_color_cb(void *priv, unsigned int color, unsigned int color
             s->box_flags |= HCLR_BOX;
             s->box_flags |= HLIT_BOX;
             s->hlit.start = AV_RB16(&s->text_pos);
-            s->hclr.color = color | (0xFF << 24);  //set alpha value to FF
+            s->hclr.color = color | (0xFFU << 24);  //set alpha value to FF
         }
     }
     /* If there are more than one secondary color changes in ASS, take start of
-- 
2.4.5



More information about the ffmpeg-devel mailing list