You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avformat/matroskadec: Assert that num_levels is non negative
Maybe Closes: CID1452496 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		| @@ -4210,7 +4210,7 @@ static int matroska_parse_cluster(MatroskaDemuxContext *matroska) | ||||
|     MatroskaBlock     *block = &cluster->block; | ||||
|     int res; | ||||
|  | ||||
|     av_assert0(matroska->num_levels <= 2); | ||||
|     av_assert0(matroska->num_levels <= 2U); | ||||
|  | ||||
|     if (matroska->num_levels == 1) { | ||||
|         res = ebml_parse(matroska, matroska_segment, NULL); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user