dvdsubenc: use unsigned shifts to avoid shifting into the sign bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
754dd7e889
commit
2ea3f37d5f
@ -207,7 +207,7 @@ static void select_palette(AVCodecContext *avctx, int out_palette[4],
|
|||||||
|
|
||||||
static void build_color_map(AVCodecContext *avctx, int cmap[],
|
static void build_color_map(AVCodecContext *avctx, int cmap[],
|
||||||
const uint32_t palette[],
|
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;
|
DVDSubtitleContext *dvdc = avctx->priv_data;
|
||||||
int i, j, d, best_d;
|
int i, j, d, best_d;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user