[vlc-commits] vdpau: fix constant

Rémi Denis-Courmont git at videolan.org
Thu Dec 20 19:43:08 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Dec 20 18:40:40 2018 +0200| [e597005ec5e0cccd9e6179f0685d337f50a8a916] | committer: Rémi Denis-Courmont

vdpau: fix constant

255 * 255 is not 65535

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e597005ec5e0cccd9e6179f0685d337f50a8a916
---

 modules/hw/vdpau/display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/vdpau/display.c b/modules/hw/vdpau/display.c
index 43ddb71ede..ac16dd484f 100644
--- a/modules/hw/vdpau/display.c
+++ b/modules/hw/vdpau/display.c
@@ -215,7 +215,7 @@ static void RenderRegion(vout_display_t *vd, VdpOutputSurface target,
             / subpic->i_original_picture_height,
     };
     VdpColor color = { 1.f, 1.f, 1.f,
-        reg->i_alpha * subpic->i_alpha / 65535.f };
+        reg->i_alpha * subpic->i_alpha / 65025.f };
     VdpOutputSurfaceRenderBlendState state = {
         .struct_version = VDP_OUTPUT_SURFACE_RENDER_BLEND_STATE_VERSION,
         .blend_factor_source_color =



More information about the vlc-commits mailing list