diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:40:33 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 21:40:33 +0000 |
commit | 05decb00cb4d1c4b75eee4af6d6ebfae34092b57 (patch) | |
tree | 9f90259c8d3a23958bfd4d97fc98c3ca9611d332 /libavfilter | |
parent | 35db407eb26425ea3bc10a25b031dee0f45a5cf5 (diff) | |
download | ffmpeg-05decb00cb4d1c4b75eee4af6d6ebfae34092b57.tar.gz |
Add const to silence warnings
Commited in SoC by Vitor Sessak on 2008-02-09 15:59:47
Originally committed as revision 12041 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index e1a439bb2f..f53803d975 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -288,7 +288,7 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h) link_dpad(link).draw_slice(link, y, h); } -AVFilter *avfilter_get_by_name(char *name) +AVFilter *avfilter_get_by_name(const char *name) { struct FilterList *filt; @@ -345,10 +345,9 @@ void avfilter_uninit(void) static int pad_count(const AVFilterPad *pads) { - AVFilterPad *p = (AVFilterPad *) pads; int count; - for(count = 0; p->name; count ++) p ++; + for(count = 0; pads->name; count ++) pads ++; return count; } @@ -358,7 +357,7 @@ static const char *filter_name(void *p) return filter->filter->name; } -AVFilterContext *avfilter_open(AVFilter *filter, char *inst_name) +AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name) { AVFilterContext *ret; |