tools/ismindex.c: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							parent
							
								
									a0a7b154bb
								
							
						
					
					
						commit
						dede2f7fc4
					
				@ -532,8 +532,9 @@ static int handle_file(struct Tracks *tracks, const char *file, int split,
 | 
			
		||||
            err = AVERROR(ENOMEM);
 | 
			
		||||
            goto fail;
 | 
			
		||||
        }
 | 
			
		||||
        temp = av_realloc(tracks->tracks,
 | 
			
		||||
                          sizeof(*tracks->tracks) * (tracks->nb_tracks + 1));
 | 
			
		||||
        temp = av_realloc_array(tracks->tracks,
 | 
			
		||||
                                tracks->nb_tracks + 1,
 | 
			
		||||
                                sizeof(*tracks->tracks));
 | 
			
		||||
        if (!temp) {
 | 
			
		||||
            av_free(track);
 | 
			
		||||
            err = AVERROR(ENOMEM);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user