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>
This commit is contained in:
Steven Liu 2018-09-22 22:10:09 +08:00
parent a7429d853d
commit bb660800a5
3 changed files with 44 additions and 35 deletions

View file

@ -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);
/**