Avoids warning about discarding qualifiers in avcodec.c
Unified · Split
| @@ -365,7 +365,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int · 364 unmodified lines | |||
| 365 | } | 365 | } |
| 366 | 366 | ||
| 367 | AVFilterBufferRef * | 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 | int w, int h, enum PixelFormat format) | 369 | int w, int h, enum PixelFormat format) |
| 370 | { | 370 | { |
| 371 | AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer)); | 371 | AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer)); |
| @@ -674,7 +674,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, · 673 unmodified lines | |||
| 674 | * @param format the pixel format of the image specified by the data and linesize arrays | 674 | * @param format the pixel format of the image specified by the data and linesize arrays |
| 675 | */ | 675 | */ |
| 676 | AVFilterBufferRef * | 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 | int w, int h, enum PixelFormat format); | 678 | int w, int h, enum PixelFormat format); |
| 679 | 679 | ||
| 680 | /** | 680 | /** |