Commit 517735e0 authored by vitor's avatar vitor

Add const to silence warnings

Commited in SoC by Vitor Sessak on 2008-02-09 15:59:47


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12110 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bc1d9ed1
...@@ -198,7 +198,7 @@ struct AVFilterPad ...@@ -198,7 +198,7 @@ struct AVFilterPad
* input may have the same name as an output. This may be NULL if this * input may have the same name as an output. This may be NULL if this
* pad has no need to ever be referenced by name. * pad has no need to ever be referenced by name.
*/ */
char *name; const char *name;
/** /**
* AVFilterPad type. Only video supported now, hopefully someone will * AVFilterPad type. Only video supported now, hopefully someone will
...@@ -326,8 +326,8 @@ void avfilter_formats_changeref(AVFilterFormats **oldref, ...@@ -326,8 +326,8 @@ void avfilter_formats_changeref(AVFilterFormats **oldref,
*/ */
typedef struct typedef struct
{ {
char *name; ///< filter name const char *name; ///< filter name
char *author; ///< filter author const char *author; ///< filter author
int priv_size; ///< size of private data to allocate for the filter int priv_size; ///< size of private data to allocate for the filter
...@@ -506,7 +506,7 @@ void avfilter_register(AVFilter *filter); ...@@ -506,7 +506,7 @@ void avfilter_register(AVFilter *filter);
* @return The filter definition, if any matching one is registered. * @return The filter definition, if any matching one is registered.
* NULL if none found. * NULL if none found.
*/ */
AVFilter *avfilter_get_by_name(char *name); AVFilter *avfilter_get_by_name(const char *name);
/** /**
* Create a filter instance * Create a filter instance
...@@ -514,7 +514,7 @@ AVFilter *avfilter_get_by_name(char *name); ...@@ -514,7 +514,7 @@ AVFilter *avfilter_get_by_name(char *name);
* @param inst_name Name to give to the new instance. Can be NULL for none. * @param inst_name Name to give to the new instance. Can be NULL for none.
* @return Pointer to the new instance on success. NULL on failure. * @return Pointer to the new instance on success. NULL on failure.
*/ */
AVFilterContext *avfilter_open(AVFilter *filter, char *inst_name); AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name);
/** /**
* Initialize a filter * Initialize a filter
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment