avfilter/vf_palettegen: cosmetic changes

Signed-off-by: softworkz <softworkz@hotmail.com>
This commit is contained in:
Soft Works 2021-09-26 17:23:01 +00:00 committed by Paul B Mahol
parent dea673d0d5
commit 73fe19f09c
1 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ static void write_palette(AVFilterContext *ctx, AVFrame *out)
if (box_id < s->nb_boxes) {
pal[x] = s->boxes[box_id++].color;
if ((x || y) && pal[x] == last_color)
av_log(ctx, AV_LOG_WARNING, "Dupped color: %08"PRIX32"\n", pal[x]);
av_log(ctx, AV_LOG_WARNING, "Duped color: %08"PRIX32"\n", pal[x]);
last_color = pal[x];
} else {
pal[x] = last_color; // pad with last color
@ -438,7 +438,7 @@ static inline unsigned color_hash(uint32_t color, int use_alpha)
return a << (NBITS * 3) | r << (NBITS * 2) | g << NBITS | b;
}
return r<<(NBITS*2) | g<<NBITS | b;
return r << (NBITS * 2) | g << NBITS | b;
}
/**