changeset 2716:5e10c7239819

passing palette to libvo
author arpi
date Mon, 05 Nov 2001 15:47:21 +0000
parents 7406f6d1c8ba
children 5fa8c079ee3c
files dec_video.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
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)