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.
*/
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.