changeset 20978:8aebf806a476

Support palette for general vobsub
author reimar
date Fri, 17 Nov 2006 20:11:52 +0000
parents 28714c74c444
children 7909e90e01c1
files mplayer.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Nov 17 19:37:58 2006 +0000
+++ b/mplayer.c	Fri Nov 17 20:11:52 2006 +0000
@@ -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);
 }