diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-23 00:05:58 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-23 00:06:02 +0400 |
commit | 5367c0be623885eb0fcd0542564150d79d881a1c (patch) | |
tree | bb2a038ef12ee9a02f77fea7129356f5c893f07c /libavresample/utils.c | |
parent | 55479f42ce60a2e3a5c468b6953ee232110d016b (diff) | |
parent | 7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731 (diff) |
Merge commit '7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731'
* commit '7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731':
lavr: add a function for checking whether AVAudioResampleContext is open
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 db1e08701a..37c3f90afa 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); |