changeset 2429:326e6fcf9f85 libavformat

Const correctness
author conrad
date Wed, 05 Sep 2007 00:22:45 +0000
parents 54f89ce33554
children da0227bd105a
files matroskaenc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/matroskaenc.c	Wed Sep 05 00:22:43 2007 +0000
+++ b/matroskaenc.c	Wed Sep 05 00:22:45 2007 +0000
@@ -68,14 +68,14 @@
 //static void put_ebml_sint(ByteIOContext *pb, unsigned int elementid, int64_t val)
 
 static void put_ebml_binary(ByteIOContext *pb, unsigned int elementid,
-                            uint8_t *buf, int size)
+                            const uint8_t *buf, int size)
 {
     put_ebml_id(pb, elementid);
     put_ebml_size(pb, size, 0);
     put_buffer(pb, buf, size);
 }
 
-static void put_ebml_string(ByteIOContext *pb, unsigned int elementid, char *str)
+static void put_ebml_string(ByteIOContext *pb, unsigned int elementid, const char *str)
 {
     put_ebml_binary(pb, elementid, str, strlen(str));
 }