[FFmpeg-devel] [PATCH] parseutils: add some documentation for small_strptime()
Stefano Sabatini
stefano.sabatini-lala at poste.it
Tue Jul 19 12:10:31 CEST 2011
---
libavutil/parseutils.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 8666822..f7e94f8 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -401,7 +401,16 @@ static int date_get_num(const char **pp,
return val;
}
-/* small strptime for ffmpeg */
+/**
+ * Parse the input string p according to the format string fmt and
+ * store its results in the structure dt.
+ * Unlike the standard strptime(), this implementation supports a more
+ * limited number of formats.
+ *
+ * @return a pointer to the first character not processed in this
+ * function call, or NULL in case the function fails to match all of
+ * the format string and therefore an error occurred
+ */
static
const char *small_strptime(const char *p, const char *fmt,
struct tm *dt)
--
1.7.2.5
More information about the ffmpeg-devel
mailing list