diff options
author | Marton Balint <cus@passwd.hu> | 2017-08-03 01:48:06 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2017-08-10 22:25:51 +0200 |
commit | 498c90c708446b5d30161e51b97e6fd4255dfad6 (patch) | |
tree | 4425b7f7c80f2cf387b2f6e745466633effd8658 /libavcodec/aacadtsdec.c | |
parent | 3bd2228d05a05eab5f91ac00b01efac9cb07649b (diff) | |
download | ffmpeg-498c90c708446b5d30161e51b97e6fd4255dfad6.tar.gz |
avfilter/vf_overlay: fix alpha blending for planar formats with a transparent background
When the background had an alpha channel, the old code in blend_plane
calculated premultiplied alpha from the destination plane colors instead of the
destination alpha.
Also the calculation of the output alpha should only happen after the color
planes are already finished.
Fixes output of:
ffplay -f lavfi "testsrc2=alpha=32[a];color=black[b];[b][a]overlay[out0]"
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/aacadtsdec.c')
0 files changed, 0 insertions, 0 deletions