]> git.sesse.net Git - ffmpeg/commit
avutil/avstring: support input path as a null pointer or empty string
authorLimin Wang <lance.lmwang@gmail.com>
Tue, 24 Sep 2019 11:23:58 +0000 (19:23 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Tue, 8 Oct 2019 06:12:43 +0000 (14:12 +0800)
commita77fb510c2684a43980c79ff85ff36e094cae63c
tree7b1878c4e9ae07bab2f2032ac15a3000be6579e2
parent985ed65117c7c82255bb0931442725aa6e5f6967
avutil/avstring: support input path as a null pointer or empty string

Linux and OSX systems support basename and dirname via <libgen.h>, I plan to
make the wrapper interface conform to the standard interface first.
If it is feasible, I will continue to modify it to call the system interface
if there is already a system call interface.

You can get more description about the system interface by below command:
 "man 3 basename"

Reviewed-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavutil/avstring.c
libavutil/avstring.h