You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/ljpegenc: fix mem allocation failure return code encode_picture_lossless()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -63,7 +63,7 @@ static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt, | ||||
|         s->rd_scratchpad = av_mallocz(alloc_size * 4 * 16 * 2); | ||||
|         if (!s->rd_scratchpad) { | ||||
|             av_log(avctx, AV_LOG_ERROR, "failed to allocate context scratch buffers.\n"); | ||||
|             return ret; | ||||
|             return AVERROR(ENOMEM); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user