[MPlayer-cvslog] r20994 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Fri Nov 17 21:11:52 CET 2006


Author: reimar
Date: Fri Nov 17 21:11:52 2006
New Revision: 20994

Modified:
   trunk/mplayer.c

Log:
Support palette for general vobsub


Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Fri Nov 17 21:11:52 2006
@@ -4152,8 +4152,12 @@
 }
 
 if (vo_spudec==NULL) {
+  sh_sub_t *sh = (sh_sub_t *)d_dvdsub->sh;
+  unsigned int *palette = NULL;
+  if (sh && sh->has_palette)
+    palette = sh->palette;
   current_module="spudec_init_normal";
-  vo_spudec=spudec_new_scaled(NULL, sh_video->disp_w, sh_video->disp_h);
+  vo_spudec=spudec_new_scaled(palette, sh_video->disp_w, sh_video->disp_h);
   spudec_set_font_factor(vo_spudec,font_factor);
 }
 



More information about the MPlayer-cvslog mailing list