[FFmpeg-devel] [PATCH] lavc: const correctness for avpicture_fill()
Paul B Mahol
onemda at gmail.com
Tue Oct 30 04:37:22 CET 2012
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/avcodec.h | 2 +-
libavcodec/imgconvert.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 1495c9e..1c3dff7 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4489,7 +4489,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 202fbf5..13a0431 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,
--
1.7.11.2
More information about the ffmpeg-devel
mailing list