diff mbox series

[FFmpeg-devel,v2,2/2] avfilter/palettegen: Cosmetic changes

Message ID MN2PR04MB5981AD0002932D8BEC4D706FBAA69@MN2PR04MB5981.namprd04.prod.outlook.com
State Accepted
Commit 73fe19f09c38cb35f659c7d972bda3837b626ff8
Headers show
Series [FFmpeg-devel,v2,1/2] avfilter/palettegen, paletteuse: Extend the palette conversion filters to support palettes with alpha | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Soft Works Sept. 26, 2021, 5:23 p.m. UTC
Signed-off-by: softworkz <softworkz@hotmail.com>
---
 libavfilter/vf_palettegen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_palettegen.c b/libavfilter/vf_palettegen.c
index 98dff46fe0..7a74a3752f 100644
--- a/libavfilter/vf_palettegen.c
+++ b/libavfilter/vf_palettegen.c
@@ -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;
 }
 
 /**