You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	atrac1: Check block align.
Fixes OOM Fixes second samples posted in Ticket1893 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -343,6 +343,11 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx) | ||||
|         return AVERROR(EINVAL); | ||||
|     } | ||||
|  | ||||
|     if (avctx->block_align <= 0) { | ||||
|         av_log_ask_for_sample(avctx, "unsupported block align\n"); | ||||
|         return AVERROR_PATCHWELCOME; | ||||
|     } | ||||
|  | ||||
|     /* Init the mdct transforms */ | ||||
|     if ((ret = ff_mdct_init(&q->mdct_ctx[0], 6, 1, -1.0/ (1 << 15))) || | ||||
|         (ret = ff_mdct_init(&q->mdct_ctx[1], 8, 1, -1.0/ (1 << 15))) || | ||||
|   | ||||
		Reference in New Issue
	
	Block a user