| 
																	
																	
																		
																	
																	
																 | 
																@@ -160,7 +160,10 @@ static av_cold int libopus_decode_close(AVCodecContext *avc) | 
															
														
														
													
														
															
																 | 
																 | 
																{ | 
																 | 
																 | 
																{ | 
															
														
														
													
														
															
																 | 
																 | 
																    struct libopus_context *opus = avc->priv_data; | 
																 | 
																 | 
																    struct libopus_context *opus = avc->priv_data; | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																    opus_multistream_decoder_destroy(opus->dec); | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    if (opus->dec) { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        opus_multistream_decoder_destroy(opus->dec); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        opus->dec = NULL; | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    } | 
															
														
														
													
														
															
																 | 
																 | 
																    return 0; | 
																 | 
																 | 
																    return 0; | 
															
														
														
													
														
															
																 | 
																 | 
																} | 
																 | 
																 | 
																} | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																	
																	
																		
																	
																	
																 | 
																@@ -252,6 +255,7 @@ AVCodec ff_libopus_decoder = { | 
															
														
														
													
														
															
																 | 
																 | 
																    .decode         = libopus_decode, | 
																 | 
																 | 
																    .decode         = libopus_decode, | 
															
														
														
													
														
															
																 | 
																 | 
																    .flush          = libopus_flush, | 
																 | 
																 | 
																    .flush          = libopus_flush, | 
															
														
														
													
														
															
																 | 
																 | 
																    .capabilities   = AV_CODEC_CAP_DR1, | 
																 | 
																 | 
																    .capabilities   = AV_CODEC_CAP_DR1, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    .caps_internal  = FF_CODEC_CAP_INIT_CLEANUP, | 
															
														
														
													
														
															
																 | 
																 | 
																    .sample_fmts    = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, | 
																 | 
																 | 
																    .sample_fmts    = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, | 
															
														
														
													
														
															
																 | 
																 | 
																                                                     AV_SAMPLE_FMT_S16, | 
																 | 
																 | 
																                                                     AV_SAMPLE_FMT_S16, | 
															
														
														
													
														
															
																 | 
																 | 
																                                                     AV_SAMPLE_FMT_NONE }, | 
																 | 
																 | 
																                                                     AV_SAMPLE_FMT_NONE }, | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																	
																	
																	
																 | 
																
  |