[vlc-commits] direct3d11: fix the bits per channel
Steve Lhomme
git at videolan.org
Sun Dec 17 23:18:11 CET 2017
vlc/vlc-3.0 | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Dec 13 10:49:42 2017 +0100| [65ed023b90333c3726d317190ed8f7dd0bc8da40] | committer: Jean-Baptiste Kempf
direct3d11: fix the bits per channel
We don't want the bits per plane for packed formats.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 59d1a442c73d23bd07176b8f963f25b84aad556b)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=65ed023b90333c3726d317190ed8f7dd0bc8da40
---
modules/video_output/win32/direct3d11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 7d2efceb2d..2eeafc4899 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1598,7 +1598,7 @@ static int SetupOutputFormat(vout_display_t *vd, video_format_t *fmt)
default:
{
const vlc_chroma_description_t *p_format = vlc_fourcc_GetChromaDescription(fmt->i_chroma);
- bits_per_channel = p_format == NULL || p_format->pixel_bits == 0 ? 8 : p_format->pixel_bits;
+ bits_per_channel = p_format == NULL || p_format->pixel_bits == 0 ? 8 : p_format->pixel_bits / p_format->pixel_size;
}
break;
}
More information about the vlc-commits
mailing list