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
0250fc21
Commit
0250fc21
authored
Feb 11, 2016
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/img2enc: return error if image rename fails
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
123ff81a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
img2enc.c
libavformat/img2enc.c
+3
-1
No files found.
libavformat/img2enc.c
View file @
0250fc21
...
@@ -180,7 +180,9 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -180,7 +180,9 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
if
(
!
img
->
is_pipe
)
{
if
(
!
img
->
is_pipe
)
{
ff_format_io_close
(
s
,
&
pb
[
0
]);
ff_format_io_close
(
s
,
&
pb
[
0
]);
for
(
i
=
0
;
i
<
nb_renames
;
i
++
)
{
for
(
i
=
0
;
i
<
nb_renames
;
i
++
)
{
ff_rename
(
img
->
tmp
[
i
],
img
->
target
[
i
],
s
);
int
ret
=
ff_rename
(
img
->
tmp
[
i
],
img
->
target
[
i
],
s
);
if
(
ret
<
0
)
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