From f383aab04d614f203353a8834ef63b1bdc7ec6bf Mon Sep 17 00:00:00 2001 From: arpi Date: Tue, 4 Dec 2001 00:46:24 +0000 Subject: msrle8 paletet fix (workcycl.avi) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3304 b3059339-0415-0410-9bf9-f77b7e298cf2 --- dec_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dec_video.c') diff --git a/dec_video.c b/dec_video.c index 761f629472..b74fc77afd 100644 --- a/dec_video.c +++ b/dec_video.c @@ -542,8 +542,8 @@ switch(sh_video->codec->driver){ 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); -- cgit v1.2.3