mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
video-dither: Use saturated add when adding ordered dither for > 8 bit targets
Otherwise our 16 bit integers are going to overflow in intermediate calculations, causing video to become mostly black. https://bugzilla.gnome.org/show_bug.cgi?id=755392
This commit is contained in:
parent
1fb85733f5
commit
8239da2311
1 changed files with 1 additions and 1 deletions
|
@ -2550,5 +2550,5 @@ x4 convsuswb d, p
|
|||
.temp 8 m
|
||||
|
||||
loadpq m, masks
|
||||
x4 addw p, d, e1
|
||||
x4 addusw p, d, e1
|
||||
x4 andnw d, m, p
|
||||
|
|
Loading…
Reference in a new issue