[Mplayer-cvslog] CVS: main/loader/dmo DMO_VideoDecoder.c,1.6,1.7

pl CVS pl at mplayerhq.hu
Sat Sep 20 02:53:31 CEST 2003


Update of /cvsroot/mplayer/main/loader/dmo
In directory mail:/var/tmp.root/cvs-serv1008

Modified Files:
	DMO_VideoDecoder.c 
Log Message:
fix for the no video/black screen with some dmo/wmv9 movies
(for some videos: bits=12 and once /8 the allocated buffer is 50% too small)


Index: DMO_VideoDecoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/dmo/DMO_VideoDecoder.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DMO_VideoDecoder.c	24 Apr 2003 18:48:27 -0000	1.6
+++ DMO_VideoDecoder.c	20 Sep 2003 00:52:51 -0000	1.7
@@ -463,8 +463,9 @@
 	  this->iv.m_obh.biSize = sizeof(BITMAPINFOHEADER);
 	  this->iv.m_obh.biCompression=csp;
 	  this->iv.m_obh.biBitCount=bits;
-	  this->iv.m_obh.biSizeImage=labs(this->iv.m_obh.biBitCount*
-             this->iv.m_obh.biWidth*this->iv.m_obh.biHeight)>>3;
+
+	  this->iv.m_obh.biSizeImage = labs(this->iv.m_obh.biWidth * this->iv.m_obh.biHeight)
+                                       * ((this->iv.m_obh.biBitCount + 7) / 8);
         }
     }
     this->m_sDestType.lSampleSize = this->iv.m_obh.biSizeImage;



More information about the MPlayer-cvslog mailing list