[FFmpeg-cvslog] lavfi: add const to the pads parameter of avfilter_pad_get_name/type

Anton Khirnov git at videolan.org
Thu Apr 11 23:35:55 CEST 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Mar 28 09:31:42 2013 +0100| [4a37d4b3f8137a4c2bbbca043de076af966b9446] | committer: Anton Khirnov

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4a37d4b3f8137a4c2bbbca043de076af966b9446
---

 libavfilter/avfilter.c |    4 ++--
 libavfilter/avfilter.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index ccf4950..7c5a971 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -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;
 }
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index f598b9f..ac25bfe 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -359,7 +359,7 @@ struct AVFilterPad {
  *
  * @return name of the pad_idx'th pad in pads
  */
-const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx);
+const char *avfilter_pad_get_name(const AVFilterPad *pads, int pad_idx);
 
 /**
  * Get the type of an AVFilterPad.
@@ -370,7 +370,7 @@ const char *avfilter_pad_get_name(AVFilterPad *pads, int pad_idx);
  *
  * @return type of the pad_idx'th pad in pads
  */
-enum AVMediaType avfilter_pad_get_type(AVFilterPad *pads, int pad_idx);
+enum AVMediaType avfilter_pad_get_type(const AVFilterPad *pads, int pad_idx);
 
 /**
  * Filter definition. This defines the pads a filter contains, and all the



More information about the ffmpeg-cvslog mailing list