You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	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:
		| @@ -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)); | ||||
|   | ||||
| @@ -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); | ||||
|  | ||||
| /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user