You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/m101: Ask for samples with too small extradata_size
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		| @@ -26,8 +26,10 @@ | ||||
|  | ||||
| static av_cold int m101_decode_init(AVCodecContext *avctx) | ||||
| { | ||||
|     if (avctx->extradata_size < 6*4) | ||||
|     if (avctx->extradata_size < 6*4) { | ||||
|         avpriv_request_sample(avctx, "Missing or too small extradata (size %d)\n", avctx->extradata_size); | ||||
|         return AVERROR_INVALIDDATA; | ||||
|     } | ||||
|  | ||||
|     if (avctx->extradata[2*4] == 10) | ||||
|         avctx->pix_fmt = AV_PIX_FMT_YUV422P10; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user