[PATCH 1/2] Document cmdutils.c:print_error().

Stefano Sabatini stefano.sabatini-lala
Wed May 5 00:11:57 CEST 2010


---
 cmdutils.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/cmdutils.h b/cmdutils.h
index ad8cefd..8980f75 100644
--- a/cmdutils.h
+++ b/cmdutils.h
@@ -134,6 +134,15 @@ void parse_options(int argc, char **argv, const OptionDef *options,
 
 void set_context_opts(void *ctx, void *opts_ctx, int flags);
 
+/**
+ * Prints an error message to stderr, indicating filename and a human
+ * readable description of the error code err.
+ *
+ * The use of this function may be unsafe in a multithreaded
+ * application if strerror_r() is not available.
+ *
+ * @see av_strerror()
+ */
 void print_error(const char *filename, int err);
 
 void list_fmts(void (*get_fmt_string)(char *buf, int buf_size, int fmt), int nb_fmts);
-- 
1.7.0


--r5Pyd7+fXNt84Ff3--



More information about the ffmpeg-devel mailing list