[FFmpeg-cvslog] smoothstreamingenc: Ignore the return value from mkdir
Martin Storsjö
git at videolan.org
Sun Oct 7 11:43:25 CEST 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sat Oct 6 02:33:32 2012 +0300| [fadd3a68213833cd3db36e8d5959a641a485c839] | committer: Martin Storsjö
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 at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fadd3a68213833cd3db36e8d5959a641a485c839
---
libavformat/smoothstreamingenc.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c
index bafed70..a8af711 100644
--- a/libavformat/smoothstreamingenc.c
+++ b/libavformat/smoothstreamingenc.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list