diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 22:14:41 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 22:14:41 +0000 |
commit | 2844dd393a39de5481e66f3ed7b27e88ff4d1015 (patch) | |
tree | 1df58971e9822841ee7596277ffab61176894bb0 | |
parent | d224d73a5da8c6519cdd5b492808af736769c753 (diff) | |
download | ffmpeg-2844dd393a39de5481e66f3ed7b27e88ff4d1015.tar.gz |
Add const to silence warnings
Commited in SoC by Vitor Sessak on 2008-02-09 15:59:47
Originally committed as revision 12110 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavfilter/avfilter.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 4f5c3a5420..d12dde0d18 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -198,7 +198,7 @@ struct AVFilterPad * 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. */ - char *name; + const char *name; /** * AVFilterPad type. Only video supported now, hopefully someone will @@ -326,8 +326,8 @@ void avfilter_formats_changeref(AVFilterFormats **oldref, */ typedef struct { - char *name; ///< filter name - char *author; ///< filter author + const char *name; ///< filter name + const char *author; ///< filter author int priv_size; ///< size of private data to allocate for the filter @@ -506,7 +506,7 @@ void avfilter_register(AVFilter *filter); * @return The filter definition, if any matching one is registered. * NULL if none found. */ -AVFilter *avfilter_get_by_name(char *name); +AVFilter *avfilter_get_by_name(const char *name); /** * Create a filter instance @@ -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. * @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 |