[FFmpeg-devel] [PATCH] lavfi: protection against premultiplied alpha (was: The patch series about premultiplied alpha)

Nicolas George george at nsup.org
Sun Aug 3 21:15:09 EEST 2025


Nicolas George (HE12025-08-03):
> I will send the series here in a few hours.

Here is a series of patch. I am absolutely not sure I found all the
filters that could be flagged, but the rest can be done as the need
arises.

Not tested every filter, but it is pretty straightforward.

I could not find how to download your patch series in a format suitable
for git am from the monster, I used the v2 series, but it should not
change anything.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavfi-add-a-flag-for-filters-that-support-premultipl.patch
Type: text/x-diff
Size: 1708 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavfi-vf_stack-check-alp-a-mode-consistency.patch
Type: text/x-diff
Size: 1901 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-lavfi-video-add-ff_video_default_filterpad_premult_o.patch
Type: text/x-diff
Size: 1659 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-lavfi-vf_null-use-ff_video_default_filterpad_premult.patch
Type: text/x-diff
Size: 900 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-lavfi-vf_fps-use-ff_video_default_filterpad_premult_.patch
Type: text/x-diff
Size: 820 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-lavfi-buffersink-use-ff_video_default_filterpad_prem.patch
Type: text/x-diff
Size: 851 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0005.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-lavfi-settb-use-ff_video_default_filterpad_premult_o.patch
Type: text/x-diff
Size: 879 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0006.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-lavfi-vf_untile-use-ff_video_default_filterpad_premu.patch
Type: text/x-diff
Size: 882 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0007.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-lavfi-vf_fsync-use-ff_video_default_filterpad_premul.patch
Type: text/x-diff
Size: 856 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0008.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-lavfi-vf_separatefields-use-ff_video_default_filterp.patch
Type: text/x-diff
Size: 908 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0009.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-lavfi-f_cue-use-ff_video_default_filterpad_premult_o.patch
Type: text/x-diff
Size: 907 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0010.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-lavfi-f_latency-use-ff_video_default_filterpad_premu.patch
Type: text/x-diff
Size: 840 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0011.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-lavfi-f_loop-use-ff_video_default_filterpad_premult_.patch
Type: text/x-diff
Size: 843 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0012.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-lavfi-split-use-ff_video_default_filterpad_premult_o.patch
Type: text/x-diff
Size: 811 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0013.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-lavfi-vf_format-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTI.patch
Type: text/x-diff
Size: 799 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0014.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-lavfi-vf_scale-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTIP.patch
Type: text/x-diff
Size: 1241 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0015.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0017-lavfi-vf_aspect-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTI.patch
Type: text/x-diff
Size: 782 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0016.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0018-lavfi-vf_setparams-set-AVFILTERPAD_FLAG_ACCEPT_PREMU.patch
Type: text/x-diff
Size: 793 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0017.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0019-lavfi-vf_copy-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTIPL.patch
Type: text/x-diff
Size: 778 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0018.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0020-lavfi-vf_vfrdet-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTI.patch
Type: text/x-diff
Size: 780 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0019.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0021-lavfi-vf_framestep-set-AVFILTERPAD_FLAG_ACCEPT_PREMU.patch
Type: text/x-diff
Size: 801 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0020.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0022-lavfi-vf_ccrepack-set-AVFILTERPAD_FLAG_ACCEPT_PREMUL.patch
Type: text/x-diff
Size: 809 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0021.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0023-lavfi-vf_dejudder-set-AVFILTERPAD_FLAG_ACCEPT_PREMUL.patch
Type: text/x-diff
Size: 796 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0022.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0024-lavfi-vf_iccgen-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTI.patch
Type: text/x-diff
Size: 795 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0023.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0025-lavfi-vf_premultiply-set-AVFILTERPAD_FLAG_ACCEPT_PRE.patch
Type: text/x-diff
Size: 885 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0024.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0026-lavfi-vf_random-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTI.patch
Type: text/x-diff
Size: 782 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0025.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0027-lavfi-vf_shuffleframes-set-AVFILTERPAD_FLAG_ACCEPT_P.patch
Type: text/x-diff
Size: 831 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0026.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0028-lavfi-vf_overlay-set-AVFILTERPAD_FLAG_ACCEPT_PREMULT.patch
Type: text/x-diff
Size: 1014 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0027.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0029-lavfi-f_select-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTIP.patch
Type: text/x-diff
Size: 847 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0028.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0030-lavfi-vf_bbox-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTIPL.patch
Type: text/x-diff
Size: 768 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0029.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0031-lavfi-vf_blackdetect-set-AVFILTERPAD_FLAG_ACCEPT_PRE.patch
Type: text/x-diff
Size: 866 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0030.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0032-lavfi-vf_pixdesctest-set-AVFILTERPAD_FLAG_ACCEPT_PRE.patch
Type: text/x-diff
Size: 832 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0031.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0033-lavfi-vf_libplacebo-set-AVFILTERPAD_FLAG_ACCEPT_PREM.patch
Type: text/x-diff
Size: 915 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0032.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0034-lavfi-vf_field-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTIP.patch
Type: text/x-diff
Size: 773 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0033.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0035-lavfi-vf_fieldhint-set-AVFILTERPAD_FLAG_ACCEPT_PREMU.patch
Type: text/x-diff
Size: 796 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0034.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0036-lavfi-vf_fieldmatch-set-AVFILTERPAD_FLAG_ACCEPT_PREM.patch
Type: text/x-diff
Size: 825 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0035.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0037-lavfi-vf_fieldorder-set-AVFILTERPAD_FLAG_ACCEPT_PREM.patch
Type: text/x-diff
Size: 825 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0036.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0038-lavfi-vf_hflip-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTIP.patch
Type: text/x-diff
Size: 790 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0037.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0039-lavfi-vf_vflip-set-AVFILTERPAD_FLAG_ACCEPT_PREMULTIP.patch
Type: text/x-diff
Size: 804 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250803/49c56d94/attachment-0038.patch>


More information about the ffmpeg-devel mailing list