dvdsubenc: use unsigned shifts to avoid shifting into the sign bit
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 12 Jan 2013 20:40:41 +0000 (21:40 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 12 Jan 2013 20:45:03 +0000 (21:45 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvdsubenc.c

index cd041c3..6e19623 100644 (file)
@@ -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;