]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_palettegen.c
Merge commit '04e8b8b0530e2aa33010faba3d0b6b6c9c5b704e'
[ffmpeg] / libavfilter / vf_palettegen.c
index 5ff73e6b2b0d9cd7b69fb8102cc47961dd62a8df..44323782d22a366504521a610ad8367567846dc5 100644 (file)
@@ -245,7 +245,7 @@ static void write_palette(AVFilterContext *ctx, AVFrame *out)
                     av_log(ctx, AV_LOG_WARNING, "Dupped color: %08"PRIX32"\n", pal[x]);
                 last_color = pal[x];
             } else {
-                pal[x] = 0xff000000; // pad with black
+                pal[x] = last_color; // pad with last color
             }
         }
         pal += pal_linesize;