| 
																	
																	
																		
																	
																	
																 | 
																@@ -710,7 +710,7 @@ av_cold int avcodec_close(AVCodecContext *avctx) | 
															
														
														
													
														
															
																 | 
																 | 
																        avctx->codec->close(avctx); | 
																 | 
																 | 
																        avctx->codec->close(avctx); | 
															
														
														
													
														
															
																 | 
																 | 
																    avcodec_default_free_buffers(avctx); | 
																 | 
																 | 
																    avcodec_default_free_buffers(avctx); | 
															
														
														
													
														
															
																 | 
																 | 
																    av_freep(&avctx->priv_data); | 
																 | 
																 | 
																    av_freep(&avctx->priv_data); | 
															
														
														
													
														
															
																 | 
																 | 
																    if(avctx->codec->encode) | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    if(avctx->codec && avctx->codec->encode) | 
															
														
														
													
														
															
																 | 
																 | 
																        av_freep(&avctx->extradata); | 
																 | 
																 | 
																        av_freep(&avctx->extradata); | 
															
														
														
													
														
															
																 | 
																 | 
																    avctx->codec = NULL; | 
																 | 
																 | 
																    avctx->codec = NULL; | 
															
														
														
													
														
															
																 | 
																 | 
																    entangled_thread_counter--; | 
																 | 
																 | 
																    entangled_thread_counter--; | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																	
																	
																	
																 | 
																
  |