lavc: const correctness for avpicture_fill()
authorPaul B Mahol <onemda@gmail.com>
Tue, 30 Oct 2012 03:27:09 +0000 (03:27 +0000)
committerPaul B Mahol <onemda@gmail.com>
Tue, 30 Oct 2012 18:40:24 +0000 (18:40 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/avcodec.h
libavcodec/imgconvert.c

index a08cd03..5344159 100644 (file)
@@ -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);
 
 /**
index 202fbf5..13a0431 100644 (file)
@@ -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,