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>
This commit is contained in:
parent
e844abc498
commit
612d0782fc
@ -365,7 +365,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
AVFilterBufferRef *
|
AVFilterBufferRef *
|
||||||
avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int perms,
|
avfilter_get_video_buffer_ref_from_arrays(uint8_t * const data[4], const int linesize[4], int perms,
|
||||||
int w, int h, enum PixelFormat format)
|
int w, int h, enum PixelFormat format)
|
||||||
{
|
{
|
||||||
AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer));
|
AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer));
|
||||||
|
@ -674,7 +674,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms,
|
|||||||
* @param format the pixel format of the image specified by the data and linesize arrays
|
* @param format the pixel format of the image specified by the data and linesize arrays
|
||||||
*/
|
*/
|
||||||
AVFilterBufferRef *
|
AVFilterBufferRef *
|
||||||
avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int perms,
|
avfilter_get_video_buffer_ref_from_arrays(uint8_t * const data[4], const int linesize[4], int perms,
|
||||||
int w, int h, enum PixelFormat format);
|
int w, int h, enum PixelFormat format);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user