]> git.sesse.net Git - ffmpeg/blobdiff - cmdutils.h
api-example: remove an unneeded call to avcodec_get_frame_defaults().
[ffmpeg] / cmdutils.h
index 2372b3f3878a76ffe4bfde614f2d5369f9706347..f1b69f95b759e49e84712c13309ed46ca9643f8b 100644 (file)
@@ -44,6 +44,16 @@ extern AVFormatContext *avformat_opts;
 extern struct SwsContext *sws_opts;
 extern AVDictionary *format_opts, *codec_opts, *resample_opts;
 
+/**
+ * Register a program-specific cleanup routine.
+ */
+void register_exit(void (*cb)(int ret));
+
+/**
+ * Wraps exit with a program-specific cleanup routine.
+ */
+void exit_program(int ret);
+
 /**
  * Initialize the cmdutils option system, in particular
  * allocate the *_opts contexts.
@@ -61,6 +71,11 @@ void uninit_opts(void);
  */
 void log_callback_help(void* ptr, int level, const char* fmt, va_list vl);
 
+/**
+ * Override the cpuflags mask.
+ */
+int opt_cpuflags(void *optctx, const char *opt, const char *arg);
+
 /**
  * Fallback for options that are not explicitly handled, these will be
  * parsed through AVOptions.