mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
lavr: add a function for checking whether AVAudioResampleContext is open
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