[FFmpeg-cvslog] Add const to avfilter_get_video_buffer_ref_from_arrays arguments.

Reimar Döffinger git at videolan.org
Sun Jun 5 19:57:42 CEST 2011


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Wed Jun  1 20:44:08 2011 +0200| [612d0782fc885aaa0bbb8f8966d425ea91a606cf] | committer: Reimar Döffinger

Add const to avfilter_get_video_buffer_ref_from_arrays arguments.

Avoids warning about discarding qualifiers in avcodec.c

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

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

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

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 037d586..fae3c6c 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -365,7 +365,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int
 }
 
 AVFilterBufferRef *
-avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int perms,
+avfilter_get_video_buffer_ref_from_arrays(uint8_t * const data[4], const int linesize[4], int perms,
                                           int w, int h, enum PixelFormat format)
 {
     AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer));
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index e8e2a8b..4ff68cd 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -674,7 +674,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms,
  * @param format the pixel format of the image specified by the data and linesize arrays
  */
 AVFilterBufferRef *
-avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int perms,
+avfilter_get_video_buffer_ref_from_arrays(uint8_t * const data[4], const int linesize[4], int perms,
                                           int w, int h, enum PixelFormat format);
 
 /**



More information about the ffmpeg-cvslog mailing list