changeset 21539:ad7616b01560

use dvdnav's palette if available
author nicodvb
date Sat, 09 Dec 2006 19:24:12 +0000
parents c9b6588932b5
children 147c1c305f21
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Dec 09 19:23:35 2006 +0000
+++ b/mplayer.c	Sat Dec 09 19:24:12 2006 +0000
@@ -1052,8 +1052,9 @@
 
 #ifdef USE_DVDNAV
   if (vo_spudec==NULL && stream->type==STREAMTYPE_DVDNAV) {
+    unsigned int *palette = mp_dvdnav_get_spu_clut(stream);
     current_module="spudec_init_dvdnav";
-    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);
   }
 #endif