[vlc-commits] mux: mp4: const correctness

Francois Cartegnie git at videolan.org
Thu Jan 15 12:05:37 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jan 15 12:04:50 2015 +0100| [01c0cd4443f7d49c57e9b080a1cd46363f02acbe] | committer: Francois Cartegnie

mux: mp4: const correctness

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

 modules/mux/mp4.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index bc2ae40..af15696 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -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]);



More information about the vlc-commits mailing list