[Mplayer-cvslog] CVS: main/libmpcodecs vd_vfw.c,1.5,1.6
Arpi of Ize
arpi at mplayerhq.hu
Sun Apr 21 18:32:38 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv13494
Modified Files:
vd_vfw.c
Log Message:
export palette for rgb8/bgr8
Index: vd_vfw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_vfw.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vd_vfw.c 1 Apr 2002 13:26:38 -0000 1.5
+++ vd_vfw.c 21 Apr 2002 16:32:35 -0000 1.6
@@ -90,6 +90,11 @@
return NULL;
}
+ if(mpi->imgfmt==IMGFMT_RGB8 || mpi->imgfmt==IMGFMT_BGR8){
+ // export palette:
+ mpi->planes[1]=((unsigned char*)&sh->o_bih)+40;
+ }
+
return mpi;
}
More information about the MPlayer-cvslog
mailing list