video-blend: fix blending 8-bit and 16-bit frames together
authorJakub Adam <jakub.adam@collabora.com>
Tue, 14 Jul 2020 18:44:18 +0000 (20:44 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 8 Jan 2021 08:04:55 +0000 (08:04 +0000)
commit2d198ff10b8f1970b1641aaff47cae9f93caf9bc
tree3193e95dc3becc8f8f80bd4784dad4bdfc120116
parent5950fc1aae40291a2b032aa85b8a687a795e1d45
video-blend: fix blending 8-bit and 16-bit frames together

Replace hardcoded 255s with the correct max value for the given color
depth. Use 64-bit integer in calculations where overflow may occur.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1000>
gst-libs/gst/video/video-blend.c