[Mplayer-cvslog] CVS: main/libmpcodecs vd_raw.c,1.13,1.14
Arpi of Ize
arpi at mplayerhq.hu
Thu Oct 17 23:32:52 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv14756
Modified Files:
vd_raw.c
Log Message:
fixing palette export
Index: vd_raw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_raw.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- vd_raw.c 17 Oct 2002 00:27:27 -0000 1.13
+++ vd_raw.c 17 Oct 2002 21:32:35 -0000 1.14
@@ -88,7 +88,14 @@
if(sh->format==0 || sh->format==3) mpi->stride[0]=(mpi->stride[0]+3)&(~3);
if(mpi->imgfmt==IMGFMT_RGB8 || mpi->imgfmt==IMGFMT_BGR8){
// export palette:
- mpi->planes[1]=sh->bih ? (((unsigned char*)&sh->bih)+40) : NULL;
+ mpi->planes[1]=sh->bih ? (unsigned char*)(sh->bih+1) : NULL;
+#if 0
+ printf("Exporting palette: %p !!\n",mpi->planes[1]);
+ { unsigned char* p=mpi->planes[1];
+ int i;
+ for(i=0;i<64;i++) printf("%3d: %02X %02X %02X (%02X)\n",i,p[4*i],p[4*i+1],p[4*i+2],p[4*i+3]);
+ }
+#endif
}
frame_size=mpi->stride[0]*mpi->h;
if(mpi->bpp<8) frame_size=frame_size*mpi->bpp/8;
More information about the MPlayer-cvslog
mailing list