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.
This commit is contained in:
wm4 2016-07-01 20:23:02 +02:00
parent fd5098a409
commit 8523e1fd95
1 changed files with 3 additions and 0 deletions

View File

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