Merge commit '7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731'
* commit '7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731': lavr: add a function for checking whether AVAudioResampleContext is open Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -254,6 +254,11 @@ error:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int avresample_is_open(AVAudioResampleContext *avr)
|
||||
{
|
||||
return !!avr->out_fifo;
|
||||
}
|
||||
|
||||
void avresample_close(AVAudioResampleContext *avr)
|
||||
{
|
||||
ff_audio_data_free(&avr->in_buffer);
|
||||
|
Reference in New Issue
Block a user