diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-04-25 20:08:49 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-02-22 20:52:36 +0100 |
commit | 7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731 (patch) | |
tree | b41573619b81384d2d73e2ad67a1b9e036a2a073 /libavresample/utils.c | |
parent | d922c5a5fbaf0b6c73bd8c81ae059bc6e406961c (diff) | |
download | ffmpeg-7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731.tar.gz |
lavr: add a function for checking whether AVAudioResampleContext is open
Diffstat (limited to 'libavresample/utils.c')
-rw-r--r-- | libavresample/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavresample/utils.c b/libavresample/utils.c index 2dd3d0616f..306b67c7ad 100644 --- a/libavresample/utils.c +++ b/libavresample/utils.c @@ -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); |