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/avresample.h | |
parent | d922c5a5fbaf0b6c73bd8c81ae059bc6e406961c (diff) | |
download | ffmpeg-7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731.tar.gz |
lavr: add a function for checking whether AVAudioResampleContext is open
Diffstat (limited to 'libavresample/avresample.h')
-rw-r--r-- | libavresample/avresample.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavresample/avresample.h b/libavresample/avresample.h index d26f2ca223..3358628e37 100644 --- a/libavresample/avresample.h +++ b/libavresample/avresample.h @@ -172,6 +172,14 @@ AVAudioResampleContext *avresample_alloc_context(void); int avresample_open(AVAudioResampleContext *avr); /** + * Check whether an AVAudioResampleContext is open or closed. + * + * @param avr AVAudioResampleContext to check + * @return 1 if avr is open, 0 if avr is closed. + */ +int avresample_is_open(AVAudioResampleContext *avr); + +/** * Close AVAudioResampleContext. * * This closes the context, but it does not change the parameters. The context |