[FFmpeg-devel] [PATCH] palettegen: Fill with last color, not black

Tomas Härdin tjoppen at acc.umu.se
Wed Jan 16 14:40:20 EET 2019


Hi

I was helping the fine folks at peppercarrot.com with web video
nonsense, and I notice palettegen outputs more colors than it should
due to padding the generated palette with pure black.

Compare this (ffmpeg version 3.2.12-1~deb9u1):
http://www.härdin.se/files/peppercarrot_gif/output-blackspecks-64.gif
with this (282a471 with this patch applied):
http://www.härdin.se/files/peppercarrot_gif/output-fixed-64.gif

The attached patch fixes this by padding with the last color instead of
black.

/Tomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-palettegen-Fill-with-last-color-not-black.patch
Type: text/x-patch
Size: 1129 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190116/f3a57916/attachment.bin>


More information about the ffmpeg-devel mailing list