changeset 5769:f28c734f20b3

export palette for rgb8/bgr8
author arpi
date Sun, 21 Apr 2002 16:32:35 +0000
parents c6a76d35f3b1
children ec71380bdbca
files libmpcodecs/vd_vfw.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_vfw.c	Sun Apr 21 16:11:42 2002 +0000
+++ b/libmpcodecs/vd_vfw.c	Sun Apr 21 16:32:35 2002 +0000
@@ -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;
 }