From 58ed2c3fe035313bfc7feca7fd18abb84fa4fad1 Mon Sep 17 00:00:00 2001 From: reynaldo Date: Sat, 15 Jul 2006 16:03:12 +0000 Subject: marks several read-only string parameters which aren't modified inside the called function as const. Patch by Stefan Huehner, stefan AT huehner-org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19109 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ad_libvorbis.c | 2 +- libmpcodecs/ve_x264.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/ad_libvorbis.c b/libmpcodecs/ad_libvorbis.c index 637b4f669f..0b6ef3eac0 100644 --- a/libmpcodecs/ad_libvorbis.c +++ b/libmpcodecs/ad_libvorbis.c @@ -38,7 +38,7 @@ typedef struct ov_struct_st { #endif } ov_struct_t; -static int read_vorbis_comment( char* ptr, char* comment, char* format, ... ) { +static int read_vorbis_comment( char* ptr, const char* comment, const char* format, ... ) { va_list va; int clen, ret; diff --git a/libmpcodecs/ve_x264.c b/libmpcodecs/ve_x264.c index 16e3c98627..4c0d45d8c7 100644 --- a/libmpcodecs/ve_x264.c +++ b/libmpcodecs/ve_x264.c @@ -208,7 +208,7 @@ m_option_t x264encopts_conf[] = { }; static int parse_cqm(const char *str, uint8_t *cqm, int length, - h264_module_t *mod, char *matrix_name) { + h264_module_t *mod, const char *matrix_name) { int i; if (!str) return 0; for (i = 0; i < length; i++) { -- cgit v1.2.3