[vlc-commits] scte27: use vlc_alloc helper

Thomas Guillem git at videolan.org
Sat Nov 11 18:59:59 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:42:26 2017 +0100| [daec00acd6024ec2e24957dec57c0939b59f95f3] | committer: Thomas Guillem

scte27: use vlc_alloc helper

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=daec00acd6024ec2e24957dec57c0939b59f95f3
---

 modules/codec/scte27.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/scte27.c b/modules/codec/scte27.c
index dfc4d94ec3..797af40715 100644
--- a/modules/codec/scte27.c
+++ b/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;) {



More information about the vlc-commits mailing list