Mercurial > mplayer.hg
changeset 3303:64976b15ee5d
msrle8 paletet fix (workcycl.avi)
author | arpi |
---|---|
date | Tue, 04 Dec 2001 00:46:24 +0000 |
parents | e75454b489df |
children | f03fc389433d |
files | dec_video.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);