avformat/mxfdec: Do not clear array in mxf_read_strong_ref_array() before writing
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 7aebdb8bf1fc3e09263617a7f49101cba2d43804) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		
							parent
							
								
									565bb5fe7b
								
							
						
					
					
						commit
						a9045143da
					
				@ -861,7 +861,7 @@ static int mxf_read_strong_ref_array(AVIOContext *pb, UID **refs, int *count)
 | 
			
		||||
    *count = c;
 | 
			
		||||
 | 
			
		||||
    av_free(*refs);
 | 
			
		||||
    *refs = av_calloc(*count, sizeof(UID));
 | 
			
		||||
    *refs = av_malloc_array(*count, sizeof(UID));
 | 
			
		||||
    if (!*refs) {
 | 
			
		||||
        *count = 0;
 | 
			
		||||
        return AVERROR(ENOMEM);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user