[FFmpeg-cvslog] lavc: const correctness for avpicture_fill()
Paul B Mahol
git at videolan.org
Tue Oct 30 20:12:59 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Oct 30 03:27:09 2012 +0000| [b90d7840dff8512ec6553b8ab422e477930861f3] | committer: Paul B Mahol
lavc: const correctness for avpicture_fill()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b90d7840dff8512ec6553b8ab422e477930861f3
---
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 a08cd03..5344159 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 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,
More information about the ffmpeg-cvslog
mailing list