mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
smoothstreamingenc: Ignore the return value from mkdir
We don't need to return an error if the directory already existed. We make sure that the directory actually is properly writeable later within ism_write_header by writing a manifest anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
8e2763786d
commit
fadd3a6821
@ -285,12 +285,7 @@ static int ism_write_header(AVFormatContext *s)
|
||||
int ret = 0, i;
|
||||
AVOutputFormat *oformat;
|
||||
|
||||
ret = mkdir(s->filename, 0777);
|
||||
if (ret) {
|
||||
av_log(s, AV_LOG_ERROR, "mkdir(%s): %s\n", s->filename, strerror(errno));
|
||||
return AVERROR(errno);
|
||||
}
|
||||
ret = 0;
|
||||
mkdir(s->filename, 0777);
|
||||
|
||||
oformat = av_guess_format("ismv", NULL, NULL);
|
||||
if (!oformat) {
|
||||
|
Loading…
Reference in New Issue
Block a user