summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-06-18 19:30:38 +0200
committerwm4 <wm4@nowhere>2016-06-18 19:30:38 +0200
commit07c11656e3a108d646f7d7c686c497e19ce6d7fe (patch)
treea3257bdc1c126f9ac23be2994458aeba58540d16 /sub
parent67a6203ce0a6b2f22132a5d30b0aa5b4980e6510 (diff)
downloadmpv-07c11656e3a108d646f7d7c686c497e19ce6d7fe.tar.bz2
mpv-07c11656e3a108d646f7d7c686c497e19ce6d7fe.tar.xz
sd_lavc: fix sub-bitmap alignment
Ooops.
Diffstat (limited to 'sub')
-rw-r--r--sub/sd_lavc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c
index 6661e4fac8..10363748ac 100644
--- a/sub/sd_lavc.c
+++ b/sub/sd_lavc.c
@@ -289,7 +289,7 @@ static void read_sub_bitmaps(struct sd *sd, struct sub *sub)
b->y = r->y;
// Choose such that the extended start position is aligned.
- pos.x = MP_ALIGN_UP(pos.x - extend, align * 4) + extend;
+ pos.x = MP_ALIGN_UP(pos.x - extend, align) + extend;
b->src_x = pos.x;
b->src_y = pos.y;