comparison libass/ass.h @ 29381:fd2047f3adf6

Fix read after the end of allocated buffer.
author eugeni
date Sat, 18 Jul 2009 11:32:58 +0000
parents 0f1b5b68af32
children 73a32da1ef18
comparison
equal deleted inserted replaced
29380:c15ef485f8aa 29381:fd2047f3adf6
32 /// a linked list of images produced by ass renderer 32 /// a linked list of images produced by ass renderer
33 typedef struct ass_image_s { 33 typedef struct ass_image_s {
34 int w, h; // bitmap width/height 34 int w, h; // bitmap width/height
35 int stride; // bitmap stride 35 int stride; // bitmap stride
36 unsigned char* bitmap; // 1bpp stride*h alpha buffer 36 unsigned char* bitmap; // 1bpp stride*h alpha buffer
37 // Actual bitmap size may be as low as
38 // stride * (h-1) + w
37 uint32_t color; // RGBA 39 uint32_t color; // RGBA
38 int dst_x, dst_y; // bitmap placement inside the video frame 40 int dst_x, dst_y; // bitmap placement inside the video frame
39 41
40 struct ass_image_s* next; // linked list 42 struct ass_image_s* next; // linked list
41 } ass_image_t; 43 } ass_image_t;