[Mplayer-cvslog] CVS: main dec_video.c,1.70,1.71

Arpi of Ize arpi at mplayer.dev.hu
Tue Dec 4 01:46:33 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv10268

Modified Files:
	dec_video.c 
Log Message:
msrle8 paletet fix (workcycl.avi)

Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_video.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- dec_video.c	28 Nov 2001 01:35:55 -0000	1.70
+++ dec_video.c	4 Dec 2001 00:46:24 -0000	1.71
@@ -542,8 +542,8 @@
    sh_video->our_out_buffer = (char*)memalign(64,sh_video->disp_w*sh_video->disp_h*bpp); // FIXME!!!
    if(bpp==2){  // 15 or 16 bpp ==> palette conversion!
      unsigned int* pal=(unsigned int*)(((char*)sh_video->bih)+40);
-     //int cols=(sh_video->bih->biSize-40)/4;
-     int cols=1<<(sh_video->bih->biBitCount);
+     int cols=(sh_video->bih->biSize-40)/4;
+     //int cols=1<<(sh_video->bih->biBitCount);
      int i;
      if(cols>256) cols=256;
      mp_msg(MSGT_DECVIDEO,MSGL_V,"RLE: converting palette for %d colors.\n",cols);




More information about the MPlayer-cvslog mailing list