[vlc-commits] direct3d11: fix the bits per channel

Steve Lhomme git at videolan.org
Thu Dec 14 00:57:55 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Dec 13 10:49:42 2017 +0100| [59d1a442c73d23bd07176b8f963f25b84aad556b] | 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>

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

 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