]> git.sesse.net Git - ffmpeg/commit
palettegen: Fill with last color, not black
authorTomas Härdin <tjoppen@acc.umu.se>
Wed, 16 Jan 2019 12:07:48 +0000 (13:07 +0100)
committerTomas Härdin <tjoppen@acc.umu.se>
Tue, 19 Feb 2019 20:29:03 +0000 (21:29 +0100)
commitabc5ac3cf5176189f43062f6a3e29fd012134613
tree44a1e290a774daa64d8efdbd16dbfb1b735d9e6d
parentf2e89fe4d34a7f53711ccea952331d2c77f04f19
palettegen: Fill with last color, not black

If we fill with black then the generated palette will have one color more
than what the user requested. This also resulted in unwanted black specks in
the output of paletteuse, especially when generating small palettes.
libavfilter/vf_palettegen.c
tests/ref/fate/filter-palettegen-2