diff --git a/doc/APIchanges b/doc/APIchanges
index 3d736c75937babd591c5a4c9cfe8d40a32c260f5..c9464d8e95e5eb7aa873ee95cd8df07e0d9231ee 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -15,6 +15,9 @@ libavutil:     2012-10-22
 
 API changes, most recent first:
 
+2014-02-xx - xxxxxxx - lswr 0.18.100 - swresample.h
+  Add swr_is_initialized() for checking whether a resample context is initialized.
+
 2014-02-xx - xxxxxxx - lavr 1.2.0 - avresample.h
   Add avresample_is_open() for checking whether a resample context is open.
 
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index bc1853f23f7275f14679805a7314d797100611ed..e11826eea279e0ffa39a8e1ba0ecd791b534a296 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -733,6 +733,10 @@ static int swr_convert_internal(struct SwrContext *s, AudioData *out, int out_co
     return out_count;
 }
 
+int swr_is_initialized(struct SwrContext *s) {
+    return !!s->in_buffer.ch_count;
+}
+
 int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_count,
                                 const uint8_t *in_arg [SWR_CH_MAX], int  in_count){
     AudioData * in= &s->in;
diff --git a/libswresample/swresample.h b/libswresample/swresample.h
index 381130184d197c4aab46b503ca5a7a92c302f8e8..4ba008e728ca80eb939ff02be0116d577f6c5d7b 100644
--- a/libswresample/swresample.h
+++ b/libswresample/swresample.h
@@ -165,6 +165,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.
  *
diff --git a/libswresample/version.h b/libswresample/version.h
index 464c86d74be48bbb067e807bc885290544797fad..3a9287519c61b8ca46918d0e6d0523e320fe8e79 100644
--- a/libswresample/version.h
+++ b/libswresample/version.h
@@ -29,8 +29,8 @@
 #include "libavutil/avutil.h"
 
 #define LIBSWRESAMPLE_VERSION_MAJOR 0
-#define LIBSWRESAMPLE_VERSION_MINOR 17
-#define LIBSWRESAMPLE_VERSION_MICRO 104
+#define LIBSWRESAMPLE_VERSION_MINOR 18
+#define LIBSWRESAMPLE_VERSION_MICRO 100
 
 #define LIBSWRESAMPLE_VERSION_INT  AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \
                                                   LIBSWRESAMPLE_VERSION_MINOR, \