You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	svq3: propagate codec memory allocation failure in context init
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
		
				
					committed by
					
						 Anton Khirnov
						Anton Khirnov
					
				
			
			
				
	
			
			
			
						parent
						
							cc73511e8e
						
					
				
				
					commit
					a3e215cdc9
				
			| @@ -924,7 +924,10 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx) | ||||
|  | ||||
|         h->b_stride = 4*s->mb_width; | ||||
|  | ||||
|         ff_h264_alloc_tables(h); | ||||
|         if (ff_h264_alloc_tables(h) < 0) { | ||||
|             av_log(avctx, AV_LOG_ERROR, "svq3 memory allocation failed\n"); | ||||
|             return AVERROR(ENOMEM); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     return 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user