aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/swresample.h
diff options
context:
space:
mode:
Diffstat (limited to 'libswresample/swresample.h')
-rw-r--r--libswresample/swresample.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libswresample/swresample.h b/libswresample/swresample.h
index 0525289eb0..017a320c01 100644
--- a/libswresample/swresample.h
+++ b/libswresample/swresample.h
@@ -203,6 +203,16 @@ struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
void swr_free(struct SwrContext **s);
/**
+ * Closes the context so that swr_is_initialized() returns 0.
+ *
+ * the context can be brougt back to life by running swr_init(),
+ * swr_init() can also be used without swr_close().
+ * This function is mainly provided for simplifying the usecase
+ * where one tries to support libavresample and libswresample
+ */
+void swr_close(struct SwrContext *s);
+
+/**
* Convert audio.
*
* in and in_count can be set to 0 to flush the last few samples out at the