Browse Source

scte27: use vlc_alloc helper

pull/59/merge
Thomas Guillem 9 years ago
parent
commit
daec00acd6
  1. 2
      modules/codec/scte27.c

2
modules/codec/scte27.c

@ -142,7 +142,7 @@ static subpicture_region_t *DecodeSimpleBitmap(decoder_t *dec,
int bitmap_h = bottom_h - top_h;
int bitmap_v = bottom_v - top_v;
int bitmap_size = bitmap_h * bitmap_v;
bool *bitmap = malloc(bitmap_size * sizeof(*bitmap));
bool *bitmap = vlc_alloc(bitmap_size, sizeof(*bitmap));
if (!bitmap)
return NULL;
for (int position = 0; position < bitmap_size;) {

Loading…
Cancel
Save