summaryrefslogtreecommitdiff
path: root/libpostproc
diff options
context:
space:
mode:
authorStefan Huehner <stefan@huehner.org>2006-06-18 11:33:14 +0000
committerDiego Biurrun <diego@biurrun.de>2006-06-18 11:33:14 +0000
commit7b49ce2e344a5f8864d8365d57f3c6c743f0c8f7 (patch)
tree12c908af01e95ca2df7f4ca20be592871527577e /libpostproc
parent3b9bee88891d1c170eb42d1ef51c5cd7f19b5ba5 (diff)
Add const to (mostly) char* and make some functions static, which aren't used
outside their declaring source file and which have no corresponding prototype. patch by Stefan Huehner stefan^^@^^huehner^^.^^org Originally committed as revision 5497 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libpostproc')
-rw-r--r--libpostproc/postprocess.c6
-rw-r--r--libpostproc/postprocess_internal.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index 300ea5c42c..870a8a228d 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -161,7 +161,7 @@ static struct PPFilter filters[]=
{NULL, NULL,0,0,0,0} //End Marker
};
-static char *replaceTable[]=
+static const char *replaceTable[]=
{
"default", "hdeblock:a,vdeblock:a,dering:a",
"de", "hdeblock:a,vdeblock:a,dering:a",
@@ -766,8 +766,8 @@ pp_mode_t *pp_get_mode_by_name_and_quality(char *name, int quality)
{
char temp[GET_MODE_BUFFER_SIZE];
char *p= temp;
- char *filterDelimiters= ",/";
- char *optionDelimiters= ":";
+ const char *filterDelimiters= ",/";
+ const char *optionDelimiters= ":";
struct PPMode *ppMode;
char *filterToken;
diff --git a/libpostproc/postprocess_internal.h b/libpostproc/postprocess_internal.h
index bab4c841ca..90107c733a 100644
--- a/libpostproc/postprocess_internal.h
+++ b/libpostproc/postprocess_internal.h
@@ -79,8 +79,8 @@ static inline int CLIP(int a){
* Postprocessng filter.
*/
struct PPFilter{
- char *shortName;
- char *longName;
+ const char *shortName;
+ const char *longName;
int chromDefault; ///< is chrominance filtering on by default if this filter is manually activated
int minLumQuality; ///< minimum quality to turn luminance filtering on
int minChromQuality; ///< minimum quality to turn chrominance filtering on