mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/hdsenc: Read errno before av_log() as the callback from av_log() might affect errno
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0d96d44c4f
commit
af03ba9aa2
@ -322,8 +322,8 @@ static int hds_write_header(AVFormatContext *s)
|
||||
AVOutputFormat *oformat;
|
||||
|
||||
if (mkdir(s->filename, 0777) == -1 && errno != EEXIST) {
|
||||
av_log(s, AV_LOG_ERROR , "Failed to create directory %s\n", s->filename);
|
||||
ret = AVERROR(errno);
|
||||
av_log(s, AV_LOG_ERROR , "Failed to create directory %s\n", s->filename);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user