Mercurial > mplayer.hg
comparison mplayer.c @ 20978:8aebf806a476
Support palette for general vobsub
author | reimar |
---|---|
date | Fri, 17 Nov 2006 20:11:52 +0000 |
parents | de18de0c8718 |
children | 2422495f5e78 |
comparison
equal
deleted
inserted
replaced
20977:28714c74c444 | 20978:8aebf806a476 |
---|---|
4150 mkv_sh_sub->height); | 4150 mkv_sh_sub->height); |
4151 forced_subs_only = mkv_sh_sub->forced_subs_only; | 4151 forced_subs_only = mkv_sh_sub->forced_subs_only; |
4152 } | 4152 } |
4153 | 4153 |
4154 if (vo_spudec==NULL) { | 4154 if (vo_spudec==NULL) { |
4155 sh_sub_t *sh = (sh_sub_t *)d_dvdsub->sh; | |
4156 unsigned int *palette = NULL; | |
4157 if (sh && sh->has_palette) | |
4158 palette = sh->palette; | |
4155 current_module="spudec_init_normal"; | 4159 current_module="spudec_init_normal"; |
4156 vo_spudec=spudec_new_scaled(NULL, sh_video->disp_w, sh_video->disp_h); | 4160 vo_spudec=spudec_new_scaled(palette, sh_video->disp_w, sh_video->disp_h); |
4157 spudec_set_font_factor(vo_spudec,font_factor); | 4161 spudec_set_font_factor(vo_spudec,font_factor); |
4158 } | 4162 } |
4159 | 4163 |
4160 if (vo_spudec!=NULL) | 4164 if (vo_spudec!=NULL) |
4161 inited_flags|=INITED_SPUDEC; | 4165 inited_flags|=INITED_SPUDEC; |