[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


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):
with this (282a471 with this patch applied):

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

-------------- 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