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
96840e47
Commit
96840e47
authored
Feb 15, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/utils: avoid unsigned integer overflows
parent
dfb0b937
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
utils.c
libavformat/utils.c
+6
-4
No files found.
libavformat/utils.c
View file @
96840e47
...
...
@@ -4455,15 +4455,17 @@ void avformat_free_context(AVFormatContext *s)
if
(
s
->
oformat
&&
s
->
oformat
->
priv_class
&&
s
->
priv_data
)
av_opt_free
(
s
->
priv_data
);
for
(
i
=
s
->
nb_streams
-
1
;
i
>=
0
;
i
--
)
f
f_free_stream
(
s
,
s
->
streams
[
i
]);
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
f
ree_stream
(
&
s
->
streams
[
i
]);
s
->
nb_streams
=
0
;
for
(
i
=
s
->
nb_programs
-
1
;
i
>=
0
;
i
--
)
{
for
(
i
=
0
;
i
<
s
->
nb_programs
;
i
++
)
{
av_dict_free
(
&
s
->
programs
[
i
]
->
metadata
);
av_freep
(
&
s
->
programs
[
i
]
->
stream_index
);
av_freep
(
&
s
->
programs
[
i
]);
}
s
->
nb_programs
=
0
;
av_freep
(
&
s
->
programs
);
av_freep
(
&
s
->
priv_data
);
while
(
s
->
nb_chapters
--
)
{
...
...
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