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
ef3a6a48
Commit
ef3a6a48
authored
Jan 09, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/tee: Simplify code by using avio_closep()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
643dee84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
tee.c
libavformat/tee.c
+2
-4
No files found.
libavformat/tee.c
View file @
ef3a6a48
...
...
@@ -305,8 +305,7 @@ static void close_slaves(AVFormatContext *avf)
av_freep
(
&
tee
->
slaves
[
i
].
stream_map
);
av_freep
(
&
tee
->
slaves
[
i
].
bsfs
);
avio_close
(
avf2
->
pb
);
avf2
->
pb
=
NULL
;
avio_closep
(
&
avf2
->
pb
);
avformat_free_context
(
avf2
);
tee
->
slaves
[
i
].
avf
=
NULL
;
}
...
...
@@ -437,10 +436,9 @@ static int tee_write_trailer(AVFormatContext *avf)
if
(
!
ret_all
)
ret_all
=
ret
;
if
(
!
(
avf2
->
oformat
->
flags
&
AVFMT_NOFILE
))
{
if
((
ret
=
avio_close
(
avf2
->
pb
))
<
0
)
if
((
ret
=
avio_close
p
(
&
avf2
->
pb
))
<
0
)
if
(
!
ret_all
)
ret_all
=
ret
;
avf2
->
pb
=
NULL
;
}
}
close_slaves
(
avf
);
...
...
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