aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-17 00:46:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-17 03:05:36 +0200
commite6e7ba0ce3aadef32f7f16f706c4a0406b5bd70f (patch)
tree0627618c50304f36803125b23b5e660ca3c0f6b2 /libavformat
parentf2962ac8ad353c12d81bc515a01427f0912b4a69 (diff)
downloadffmpeg-e6e7ba0ce3aadef32f7f16f706c4a0406b5bd70f.tar.gz
Add some forgotten const to function arguments in libavfilter & libavformat.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mmst.c2
-rw-r--r--libavformat/mov.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mmst.c b/libavformat/mmst.c
index 7b0af6c320..a3db288b35 100644
--- a/libavformat/mmst.c
+++ b/libavformat/mmst.c
@@ -152,7 +152,7 @@ static int send_command_packet(MMSTContext *mmst)
return 0;
}
-static void mms_put_utf16(MMSContext *mms, uint8_t *src)
+static void mms_put_utf16(MMSContext *mms, const uint8_t *src)
{
AVIOContext bic;
int size = mms->write_out_ptr - mms->out_buffer;
diff --git a/libavformat/mov.c b/libavformat/mov.c
index a41b8ce73d..26e7a3a2df 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1689,13 +1689,13 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
}
}
-static int mov_open_dref(AVIOContext **pb, char *src, MOVDref *ref)
+static int mov_open_dref(AVIOContext **pb, const char *src, MOVDref *ref)
{
/* try relative path, we do not try the absolute because it can leak information about our
system to an attacker */
if (ref->nlvl_to > 0 && ref->nlvl_from > 0) {
char filename[1024];
- char *src_path;
+ const char *src_path;
int i, l;
/* find a source dir */