From 2ea3f37d5f974ab79a3a777e42f5dbfac17c1959 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Sat, 12 Jan 2013 21:40:41 +0100
Subject: [PATCH] dvdsubenc: use unsigned shifts to avoid shifting into the
 sign bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 libavcodec/dvdsubenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index cd041c3f240..6e196235cba 100644
--- a/libavcodec/dvdsubenc.c
+++ b/libavcodec/dvdsubenc.c
@@ -207,7 +207,7 @@ static void select_palette(AVCodecContext *avctx, int out_palette[4],
 
 static void build_color_map(AVCodecContext *avctx, int cmap[],
                             const uint32_t palette[],
-                            const int out_palette[], int const out_alpha[])
+                            const int out_palette[], unsigned int const out_alpha[])
 {
     DVDSubtitleContext *dvdc = avctx->priv_data;
     int i, j, d, best_d;
-- 
GitLab