[libav-devel] [PATCH 4/5] imgutils: Const correct av_image_fill_arrays

Luca Barbato lu_zero at gentoo.org
Mon Aug 3 22:51:51 CEST 2015


The actual mapped array is going to be written.
---
 libavutil/imgutils.c | 2 +-
 libavutil/imgutils.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index 948a6f7..16dc082 100644
--- a/libavutil/imgutils.c
+++ b/libavutil/imgutils.c
@@ -301,7 +301,7 @@ void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
 }
 
 int av_image_fill_arrays(uint8_t *dst_data[4], int dst_linesize[4],
-                         const uint8_t *src, enum AVPixelFormat pix_fmt,
+                         uint8_t *src, enum AVPixelFormat pix_fmt,
                          int width, int height, int align)
 {
     int ret, i;
diff --git a/libavutil/imgutils.h b/libavutil/imgutils.h
index 04d6138..2411aa9 100644
--- a/libavutil/imgutils.h
+++ b/libavutil/imgutils.h
@@ -144,7 +144,7 @@ void av_image_copy(uint8_t *dst_data[4], int dst_linesizes[4],
  * in case of failure
  */
 int av_image_fill_arrays(uint8_t *dst_data[4], int dst_linesize[4],
-                         const uint8_t *src,
+                         uint8_t *src,
                          enum AVPixelFormat pix_fmt, int width, int height, int align);
 
 /**
-- 
1.9.0



More information about the libav-devel mailing list