lavr: add a function for checking whether AVAudioResampleContext is open

This commit is contained in:
Anton Khirnov
2013-04-25 20:08:49 +02:00
parent d922c5a5fb
commit 7e86c27b4e
4 changed files with 17 additions and 1 deletions

View File

@@ -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);