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:
parent
67a6203ce0
commit
07c11656e3
@ -289,7 +289,7 @@ static void read_sub_bitmaps(struct sd *sd, struct sub *sub)
|
|||||||
b->y = r->y;
|
b->y = r->y;
|
||||||
|
|
||||||
// Choose such that the extended start position is aligned.
|
// 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_x = pos.x;
|
||||||
b->src_y = pos.y;
|
b->src_y = pos.y;
|
||||||
|
Loading…
Reference in New Issue
Block a user