summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h2
-rw-r--r--libavcodec/imgconvert.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index a08cd031aa..5344159939 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4490,7 +4490,7 @@ void avpicture_free(AVPicture *picture);
*
* @see av_image_fill_arrays()
*/
-int avpicture_fill(AVPicture *picture, uint8_t *ptr,
+int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
enum AVPixelFormat pix_fmt, int width, int height);
/**
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 202fbf522e..13a0431c5c 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -401,7 +401,7 @@ int ff_is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
return desc->flags & PIX_FMT_HWACCEL;
}
-int avpicture_fill(AVPicture *picture, uint8_t *ptr,
+int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
enum AVPixelFormat pix_fmt, int width, int height)
{
return av_image_fill_arrays(picture->data, picture->linesize,