You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/svq3: Use av_mallocz_array() for emu_edge_buffer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -1110,7 +1110,7 @@ static int get_buffer(AVCodecContext *avctx, H264Picture *pic) | ||||
|         goto fail; | ||||
|  | ||||
|     if (!h->edge_emu_buffer) { | ||||
|         h->edge_emu_buffer = av_mallocz(pic->f.linesize[0] * 17); | ||||
|         h->edge_emu_buffer = av_mallocz_array(pic->f.linesize[0], 17); | ||||
|         if (!h->edge_emu_buffer) | ||||
|             return AVERROR(ENOMEM); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user