lavfi: add const to the pads parameter of avfilter_pad_get_name/type

This commit is contained in:
Anton Khirnov
2013-03-28 09:31:42 +01:00
parent 91d2efa7d6
commit 4a37d4b3f8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -627,12 +627,12 @@ fail:
return ret;
}
const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx)
const char *avfilter_pad_get_name(const AVFilterPad *pads, int pad_idx)
{
return pads[pad_idx].name;
}
enum AVMediaType avfilter_pad_get_type(AVFilterPad *pads, int pad_idx)
enum AVMediaType avfilter_pad_get_type(const AVFilterPad *pads, int pad_idx)
{
return pads[pad_idx].type;
}