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
c983ca5b
Commit
c983ca5b
authored
Jun 03, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegtsenc: zero pointers after freeing
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
328e203c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
mpegtsenc.c
libavformat/mpegtsenc.c
+6
-4
No files found.
libavformat/mpegtsenc.c
View file @
c983ca5b
...
...
@@ -723,9 +723,10 @@ static int mpegts_write_header(AVFormatContext *s)
if
(
ts_st
)
{
av_freep
(
&
ts_st
->
payload
);
if
(
ts_st
->
amux
)
{
av_free
(
ts_st
->
amux
->
pb
->
buffer
);
av_free
(
ts_st
->
amux
->
pb
);
av_free
p
(
&
ts_st
->
amux
->
pb
->
buffer
);
av_free
p
(
&
ts_st
->
amux
->
pb
);
avformat_free_context
(
ts_st
->
amux
);
ts_st
->
amux
=
NULL
;
}
}
av_freep
(
&
st
->
priv_data
);
...
...
@@ -1235,9 +1236,10 @@ static int mpegts_write_end(AVFormatContext *s)
MpegTSWriteStream
*
ts_st
=
st
->
priv_data
;
av_freep
(
&
ts_st
->
payload
);
if
(
ts_st
->
amux
)
{
av_free
(
ts_st
->
amux
->
pb
->
buffer
);
av_free
(
ts_st
->
amux
->
pb
);
av_free
p
(
&
ts_st
->
amux
->
pb
->
buffer
);
av_free
p
(
&
ts_st
->
amux
->
pb
);
avformat_free_context
(
ts_st
->
amux
);
ts_st
->
amux
=
NULL
;
}
}
...
...
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