avformat/utils: add missing brackets around arguments in av_realloc() call
Found-by: Neil Birkbeck <neil.birkbeck@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
		
							parent
							
								
									f242e0a0ff
								
							
						
					
					
						commit
						0b8df0ce48
					
				@ -5124,7 +5124,7 @@ int av_stream_add_side_data(AVStream *st, enum AVPacketSideDataType type,
 | 
				
			|||||||
    if ((unsigned)st->nb_side_data + 1 >= INT_MAX / sizeof(*st->side_data))
 | 
					    if ((unsigned)st->nb_side_data + 1 >= INT_MAX / sizeof(*st->side_data))
 | 
				
			||||||
        return AVERROR(ERANGE);
 | 
					        return AVERROR(ERANGE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    tmp = av_realloc(st->side_data, st->nb_side_data + 1 * sizeof(*tmp));
 | 
					    tmp = av_realloc(st->side_data, (st->nb_side_data + 1) * sizeof(*tmp));
 | 
				
			||||||
    if (!tmp) {
 | 
					    if (!tmp) {
 | 
				
			||||||
        return AVERROR(ENOMEM);
 | 
					        return AVERROR(ENOMEM);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user