libavcodec/videotoolboxenc: Fix crash when frame received after error
Signed-off-by: Rick Kern <kernrj@gmail.com>
This commit is contained in:
		
							parent
							
								
									9837f5a643
								
							
						
					
					
						commit
						adcdf0bc60
					
				| @ -573,7 +573,6 @@ static void vtenc_output_callback( | |||||||
|     ExtraSEI *sei = sourceFrameCtx; |     ExtraSEI *sei = sourceFrameCtx; | ||||||
| 
 | 
 | ||||||
|     if (vtctx->async_error) { |     if (vtctx->async_error) { | ||||||
|         if(sample_buffer) CFRelease(sample_buffer); |  | ||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user