diff --git a/libavcodec/dvdsubenc.c b/libavcodec/dvdsubenc.c
index cd041c3f240aa7c8c17c0245e400b07cdc9e172b..6e196235cbaced3e4215f275ee5444ab62ec66f3 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;