]> git.sesse.net Git - ffmpeg/blobdiff - libavresample/avresample.h
ffmpeg_opt: get_preset_file_2(): fix avio_open2() return code check
[ffmpeg] / libavresample / avresample.h
index f62e53303d2eb36b50fc47e4940576b25873d325..dc392ad076ea5a526aa29d89bd4c59de4c335dac 100644 (file)
@@ -171,6 +171,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.
  *