summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-03 16:45:59 +0100
committerwm4 <wm4@nowhere>2014-01-06 20:21:43 +0100
commit96b50e770ba1fbcba937f68ae61309e7ecd1b1cb (patch)
tree7b0c1ccab7d127bcc8b36fb9287cd298d2f85346
parent9f6551160ac7eb306f0ee87bd0a599e279f7fe8b (diff)
downloadmpv-96b50e770ba1fbcba937f68ae61309e7ecd1b1cb.tar.bz2
mpv-96b50e770ba1fbcba937f68ae61309e7ecd1b1cb.tar.xz
dvdnav: set correct stride for fake highlights
This didn't really matter, because the fake highlight rectangle is in a single color, and every pixel has the same color value.
-rw-r--r--player/dvdnav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/dvdnav.c b/player/dvdnav.c
index bc14e7c35f..7e28c1922b 100644
--- a/player/dvdnav.c
+++ b/player/dvdnav.c
@@ -243,7 +243,7 @@ void mp_nav_get_highlight(struct osd_state *osd, struct mp_osd_res res,
sub->y = nav->highlight[1];
sub->w = MPCLAMP(nav->highlight[2] - sub->x, 0, sizes[0]);
sub->h = MPCLAMP(nav->highlight[3] - sub->y, 0, sizes[1]);
- sub->stride = sub->w;
+ sub->stride = sub->w * 4;
out_imgs->format = SUBBITMAP_RGBA;
out_imgs->parts = sub;
out_imgs->num_parts = sub->w > 0 && sub->h > 0 && nav->hi_visible;