From b90d7840dff8512ec6553b8ab422e477930861f3 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 30 Oct 2012 03:27:09 +0000 Subject: lavc: const correctness for avpicture_fill() Signed-off-by: Paul B Mahol --- libavcodec/avcodec.h | 2 +- libavcodec/imgconvert.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec') 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, -- cgit v1.2.3