Originally committed as revision 12041 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavfilter/avfilter.c (1 of 1 file). Show all
Unified · Split
| @@ -288,7 +288,7 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h) · 287 unmodified lines | ||
| 288 | 288 | link_dpad(link).draw_slice(link, y, h); |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | −AVFilter *avfilter_get_by_name(char *name) | |
| 291 | +AVFilter *avfilter_get_by_name(const char *name) | |
| 292 | 292 | { |
| 293 | 293 | struct FilterList *filt; |
| 294 | 294 | |
| @@ -345,10 +345,9 @@ void avfilter_uninit(void) · 50 unmodified lines | ||
| 345 | 345 | |
| 346 | 346 | static int pad_count(const AVFilterPad *pads) |
| 347 | 347 | { |
| 348 | − AVFilterPad *p = (AVFilterPad *) pads; | |
| 349 | 348 | int count; |
| 350 | 349 | |
| 351 | − for(count = 0; p->name; count ++) p ++; | |
| 350 | + for(count = 0; pads->name; count ++) pads ++; | |
| 352 | 351 | return count; |
| 353 | 352 | } |
| 354 | 353 | |
| @@ -358,7 +357,7 @@ static const char *filter_name(void *p) · 3 unmodified lines | ||
| 358 | 357 | return filter->filter->name; |
| 359 | 358 | } |
| 360 | 359 | |
| 361 | −AVFilterContext *avfilter_open(AVFilter *filter, char *inst_name) | |
| 360 | +AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name) | |
| 362 | 361 | { |
| 363 | 362 | AVFilterContext *ret; |
| 364 | 363 | |