aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/swresample.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-22 22:28:24 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-24 08:23:22 +0100
commita66be608883d54fc0970a8b43f4a51a359e664ee (patch)
tree8a4fed53077f85e030e491abe6002983092f5fc8 /libswresample/swresample.h
parent313a6c65b749d87a8735e4bd0f232488797827cb (diff)
downloadffmpeg-a66be608883d54fc0970a8b43f4a51a359e664ee.tar.gz
swresample: add swr_is_initialized()
Idea-from/based-on: 7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731 Reviewed-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample.h')
-rw-r--r--libswresample/swresample.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libswresample/swresample.h b/libswresample/swresample.h
index 381130184d..4ba008e728 100644
--- a/libswresample/swresample.h
+++ b/libswresample/swresample.h
@@ -166,6 +166,13 @@ struct SwrContext *swr_alloc(void);
int swr_init(struct SwrContext *s);
/**
+ * Check whether an swr context has been initialized or not.
+ *
+ * @return positive if it has been initialized, 0 if not initialized
+ */
+int swr_is_initialized(struct SwrContext *s);
+
+/**
* Allocate SwrContext if needed and set/reset common parameters.
*
* This function does not require s to be allocated with swr_alloc(). On the