diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-10-30 03:27:09 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-10-30 18:40:24 +0000 |
commit | b90d7840dff8512ec6553b8ab422e477930861f3 (patch) | |
tree | 66ea42e7960240ce768af3a9be0129ca3e036884 | |
parent | 03179c2426da9ee9058bafd2f6670b859d9caf4d (diff) |
lavc: const correctness for avpicture_fill()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/avcodec.h | 2 | ||||
-rw-r--r-- | libavcodec/imgconvert.c | 2 |
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, |