# HG changeset patch # User arpi # Date 1007426784 0 # Node ID 64976b15ee5da94eacd5639910509601a40042a3 # Parent e75454b489df0aaf29aaca19a2a9386cee96d3f6 msrle8 paletet fix (workcycl.avi) diff -r e75454b489df -r 64976b15ee5d dec_video.c --- a/dec_video.c Tue Dec 04 00:26:45 2001 +0000 +++ b/dec_video.c Tue Dec 04 00:46:24 2001 +0000 @@ -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);