1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-28 11:20:56 +00:00

sd_lavc: fix sub-bitmap alignment

Ooops.
This commit is contained in:
wm4 2016-06-18 19:30:38 +02:00
parent 67a6203ce0
commit 07c11656e3

View File

@ -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;