]> git.sesse.net Git - vlc/commitdiff
mux: mp4: const correctness
authorFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 15 Jan 2015 11:04:50 +0000 (12:04 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 15 Jan 2015 11:05:34 +0000 (12:05 +0100)
modules/mux/mp4.c

index bc2ae40635d44abb9a3f01ab79f5c8c06d17dd42..af15696498206e62f83bb4bdf632751043772630 100644 (file)
@@ -214,7 +214,7 @@ static void bo_add_24be (bo_t *, uint32_t);
 static void bo_add_32be (bo_t *, uint32_t);
 static void bo_add_64be (bo_t *, uint64_t);
 static void bo_add_fourcc(bo_t *, const char *);
-static void bo_add_mem  (bo_t *, int , uint8_t *);
+static void bo_add_mem  (bo_t *, int , const uint8_t *);
 static void bo_add_descr(bo_t *, uint8_t , uint32_t);
 
 static void bo_fix_32be (bo_t *, int , uint32_t);
@@ -2280,7 +2280,7 @@ static void bo_add_fourcc(bo_t *p_bo, const char *fcc)
     bo_add_8(p_bo, fcc[3]);
 }
 
-static void bo_add_mem(bo_t *p_bo, int i_size, uint8_t *p_mem)
+static void bo_add_mem(bo_t *p_bo, int i_size, const uint8_t *p_mem)
 {
     for (int i = 0; i < i_size; i++)
         bo_add_8(p_bo, p_mem[i]);