You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
dvdsubenc: use unsigned shifts to avoid shifting into the sign bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user