mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
lavfi: add const to the pads parameter of avfilter_pad_get_name/type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user