Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 13 years ago
parent
commit
2ea3f37d5f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/dvdsubenc.c

+ 1
- 1
libavcodec/dvdsubenc.c 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;


Loading…
Cancel
Save