Avoid a null pointer dereference on oom in the aac encoder.
Fixes ticket #2732.
This commit is contained in:
		
							parent
							
								
									84343dd9d3
								
							
						
					
					
						commit
						f4aa8085f2
					
				@ -75,7 +75,7 @@ FFPsyChannelGroup *ff_psy_find_group(FFPsyContext *ctx, int channel)
 | 
			
		||||
 | 
			
		||||
av_cold void ff_psy_end(FFPsyContext *ctx)
 | 
			
		||||
{
 | 
			
		||||
    if (ctx->model->end)
 | 
			
		||||
    if (ctx->model && ctx->model->end)
 | 
			
		||||
        ctx->model->end(ctx);
 | 
			
		||||
    av_freep(&ctx->bands);
 | 
			
		||||
    av_freep(&ctx->num_bands);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user