[vlc-commits] DMO: fix small issue in BITMAPINFOHEADER

Jean-Baptiste Kempf git at videolan.org
Wed Oct 19 18:22:37 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Oct 19 18:20:02 2011 +0200| [fe58fe6dd1bdd703938264be09f0b9f5ac9106c9] | committer: Jean-Baptiste Kempf

DMO: fix small issue in BITMAPINFOHEADER

Close #5465

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

 modules/codec/dmo/dmo.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/dmo/dmo.c b/modules/codec/dmo/dmo.c
index 33c3077..ab3f67d 100644
--- a/modules/codec/dmo/dmo.c
+++ b/modules/codec/dmo/dmo.c
@@ -499,7 +499,7 @@ static int DecOpen( decoder_t *p_dec )
         BITMAPINFOHEADER *p_bih;
         DMO_MEDIA_TYPE mt;
         unsigned i_chroma = VLC_CODEC_YUYV;
-        int i_planes = 1, i_bpp = 16;
+        int i_bpp = 16;
         int i = 0;
 
         /* Find out which chroma to use */
@@ -508,7 +508,7 @@ static int DecOpen( decoder_t *p_dec )
             if( mt.subtype.Data1 == VLC_CODEC_YV12 )
             {
                 i_chroma = mt.subtype.Data1;
-                i_planes = 3; i_bpp = 12;
+                i_bpp = 12;
             }
 
             DMOFreeMediaType( &mt );
@@ -541,7 +541,7 @@ static int DecOpen( decoder_t *p_dec )
             p_dec->fmt_in.video.i_height *
             (p_dec->fmt_in.video.i_bits_per_pixel + 7) / 8;
 
-        p_bih->biPlanes = i_planes;
+        p_bih->biPlanes = 1; /* http://msdn.microsoft.com/en-us/library/dd183376%28v=vs.85%29.aspx */
         p_bih->biSize = sizeof(BITMAPINFOHEADER);
 
         dmo_output_type.majortype = MEDIATYPE_Video;



More information about the vlc-commits mailing list