Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9e5e3236
Commit
9e5e3236
authored
Dec 23, 2017
by
Aman Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/internal: fix compile error with some versions of g++
Fixes #6926 Signed-off-by:
Aman Gupta
<
aman@tmm1.net
>
parent
b5958ff8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
internal.h
libavformat/internal.h
+5
-2
No files found.
libavformat/internal.h
View file @
9e5e3236
...
...
@@ -541,8 +541,11 @@ static inline int ff_rename(const char *oldpath, const char *newpath, void *logc
int
ret
=
0
;
if
(
rename
(
oldpath
,
newpath
)
==
-
1
)
{
ret
=
AVERROR
(
errno
);
if
(
logctx
)
av_log
(
logctx
,
AV_LOG_ERROR
,
"failed to rename file %s to %s: %s
\n
"
,
oldpath
,
newpath
,
av_err2str
(
ret
));
if
(
logctx
)
{
char
err
[
AV_ERROR_MAX_STRING_SIZE
]
=
{
0
};
av_make_error_string
(
err
,
AV_ERROR_MAX_STRING_SIZE
,
ret
);
av_log
(
logctx
,
AV_LOG_ERROR
,
"failed to rename file %s to %s: %s
\n
"
,
oldpath
,
newpath
,
err
);
}
}
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment