summaryrefslogtreecommitdiffstats
path: root/av_sub.c
diff options
context:
space:
mode:
Diffstat (limited to 'av_sub.c')
-rw-r--r--av_sub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/av_sub.c b/av_sub.c
index 101f9a0291..e850e2ffa2 100644
--- a/av_sub.c
+++ b/av_sub.c
@@ -83,6 +83,8 @@ int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size,
*endpts = *pts + sub.end_display_time / 1000.0;
*pts += sub.start_display_time / 1000.0;
}
+ if (got_sub && vo_spudec && sub.num_rects == 0)
+ spudec_set_paletted(vo_spudec, NULL, 0, NULL, 0, 0, 0, 0, *pts, *endpts);
if (got_sub && sub.num_rects > 0) {
switch (sub.rects[0]->type) {
case SUBTITLE_BITMAP: