diff options
author | wm4 <wm4@nowhere> | 2016-07-01 20:23:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-01 20:28:49 +0200 |
commit | 8523e1fd95e9f701e19c82ee2f74b811e6b3c004 (patch) | |
tree | e30164d88f8bb40c4ee64ce44e20ce9a8ce1aa5b | |
parent | fd5098a40932d8eaa7da463fe4247838e5430684 (diff) | |
download | mpv-8523e1fd95e9f701e19c82ee2f74b811e6b3c004.tar.bz2 mpv-8523e1fd95e9f701e19c82ee2f74b811e6b3c004.tar.xz |
sub: set ASS sub bitmap data to correct pointer
Point it to the copied data. Doesn't really matter at this point, but
later it might have left dangling pointers.
-rw-r--r-- | sub/ass_mp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sub/ass_mp.c b/sub/ass_mp.c index 4e3c526c64..ed9db5436e 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -240,6 +240,9 @@ void mp_ass_packer_pack(struct mp_ass_packer *p, ASS_Image **image_lists, void *pdata = (uint8_t *)res.packed->planes[0] + pos.y * stride + pos.x; memcpy_pic(pdata, b->bitmap, b->w, b->h, stride, b->stride); + b->bitmap = pdata; + b->stride = stride; + b->src_x = pos.x; b->src_y = pos.y; } |