dvdsubenc: use unsigned shifts to avoid shifting into the sign bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-01-12 21:40:41 +01:00
parent 754dd7e889
commit 2ea3f37d5f

View 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;