Browse code

Add const to avfilter_get_video_buffer_ref_from_arrays arguments.

Avoids warning about discarding qualifiers in avcodec.c

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>

Reimar Döffinger authored on 2011/06/02 03:44:08
Showing 2 changed files
... ...
@@ -365,7 +365,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int
365 365
 }
366 366
 
367 367
 AVFilterBufferRef *
368
-avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int perms,
368
+avfilter_get_video_buffer_ref_from_arrays(uint8_t * const data[4], const int linesize[4], int perms,
369 369
                                           int w, int h, enum PixelFormat format)
370 370
 {
371 371
     AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer));
... ...
@@ -674,7 +674,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms,
674 674
  * @param format the pixel format of the image specified by the data and linesize arrays
675 675
  */
676 676
 AVFilterBufferRef *
677
-avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int perms,
677
+avfilter_get_video_buffer_ref_from_arrays(uint8_t * const data[4], const int linesize[4], int perms,
678 678
                                           int w, int h, enum PixelFormat format);
679 679
 
680 680
 /**