mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
Support palette for general vobsub
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20994 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
637417346e
commit
b9b610ed9a
@ -4152,8 +4152,12 @@ if ((vo_spudec == NULL) && (demuxer->type == DEMUXER_TYPE_MATROSKA) &&
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user