summaryrefslogtreecommitdiff
path: root/cmdutils.h
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-10-02 08:44:33 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-10-02 08:44:33 +0000
commita5c33faaccec6787419fe373a9e7ae0932b15ee1 (patch)
tree9b0f45a55539b3260f1db09053eb450435dfce7d /cmdutils.h
parent05931ab763c873198947142fc84dfe6c8c285fd6 (diff)
Add init and uninit functions to cmdutils, reduces code duplication
between ffmpeg and ffplay and avoids a valgrind error by freeing avformat_opts->key. Originally committed as revision 25309 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.h')
-rw-r--r--cmdutils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmdutils.h b/cmdutils.h
index e753c43081..4ce62b64a8 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -45,6 +45,17 @@ extern AVFormatContext *avformat_opts;
extern struct SwsContext *sws_opts;
/**
+ * Initialize the cmdutils option system, in particular
+ * allocate the *_opts contexts.
+ */
+void init_opts(void);
+/**
+ * Uninitialize the cmdutils option system, in particular
+ * free the *_opts contexts and their contents.
+ */
+void uninit_opts(void);
+
+/**
* Trivial log callback.
* Only suitable for show_help and similar since it lacks prefix handling.
*/