diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-06-01 20:44:08 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-06-05 19:57:14 +0200 |
commit | 612d0782fc885aaa0bbb8f8966d425ea91a606cf (patch) | |
tree | c15dde6b5d6ab9cbe4421385a36b2f34ac86f1ff /libavfilter | |
parent | e844abc4983385567cfca1a638877e19f0f1cfeb (diff) | |
download | ffmpeg-612d0782fc885aaa0bbb8f8966d425ea91a606cf.tar.gz |
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>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.c | 2 | ||||
-rw-r--r-- | libavfilter/avfilter.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 037d5864ae..fae3c6c5f2 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -365,7 +365,7 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int } 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) { AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer)); diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index e8e2a8b9d1..4ff68cd180 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -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 */ 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); /** |