diff dec_video.c @ 2716:5e10c7239819

passing palette to libvo
author arpi
date Mon, 05 Nov 2001 15:47:21 +0000
parents b082c01f6cec
children 8e3875816f6d
line wrap: on
line diff
--- a/dec_video.c	Mon Nov 05 15:02:37 2001 +0000
+++ b/dec_video.c	Mon Nov 05 15:47:21 2001 +0000
@@ -691,8 +691,13 @@
         planes[0]=sh_video->our_out_buffer;
         planes[2]=planes[0]+sh_video->disp_w*sh_video->disp_h;
         planes[1]=planes[2]+sh_video->disp_w*sh_video->disp_h/4;
-      } else
+      } else {
         planes[0]=sh_video->our_out_buffer;
+	if(sh_video->bih && sh_video->bih->biSize==1064)
+	    planes[1]=&sh_video->bih[1]; // pointer to palette
+	else
+	    planes[1]=NULL;
+      }
 case 2:
 #ifdef USE_LIBVO2
     if(planar)