summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-19 12:01:48 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-23 17:01:28 +0200
commit9c2651ab44fac3fcacd576852a7570ac64f3686e (patch)
treec0a08ad52ec88d222e12bc60636a1d6ffc4af1f9 /libavutil
parent3b8bb503eea726219ad7aa4d9586163a5a199cae (diff)
parseutils: add some documentation for small_strptime()
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/parseutils.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 866682220c..2000778a32 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.
+ * This implementation supports only a subset of the formats supported
+ * by the standard strptime().
+ *
+ * @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 fmt string and therefore an error occurred
+ */
static
const char *small_strptime(const char *p, const char *fmt,
struct tm *dt)