summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2018-09-22 22:10:09 +0800
committerSteven Liu <lq@chinaffmpeg.org>2018-09-25 21:57:49 +0800
commitbb660800a55f5171f77316941afe2e62534ee72c (patch)
tree274900744b0200566d8fc5f9a1d0cdc5226caddd /libavformat/internal.h
parenta7429d853de04d2f2984afdba36ebac3937651fb (diff)
avformat/utils: move mkdir_p to utils
Because it will be used by avformat/segment.c or other module which need to automatically create sub-directories operation. Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 0b8120b842..399d0a68be 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -211,6 +211,14 @@ do {\
struct tm *ff_brktimegm(time_t secs, struct tm *tm);
+/**
+ * Automatically create sub-directories
+ *
+ * @param path will create sub-directories by path
+ * @return 0, or < 0 on error
+ */
+int ff_mkdir_p(const char *path);
+
char *ff_data_to_hex(char *buf, const uint8_t *src, int size, int lowercase);
/**