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
b64fe493
Commit
b64fe493
authored
Nov 01, 2015
by
Hendrik Leppkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: always unref the packet after parsing
This fixes a memory leak when side-data is present.
parent
83d20a6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
utils.c
libavformat/utils.c
+4
-5
No files found.
libavformat/utils.c
View file @
b64fe493
...
@@ -1285,12 +1285,11 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
...
@@ -1285,12 +1285,11 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
compute_pkt_fields
(
s
,
st
,
st
->
parser
,
&
out_pkt
,
next_dts
,
next_pts
);
compute_pkt_fields
(
s
,
st
,
st
->
parser
,
&
out_pkt
,
next_dts
,
next_pts
);
if
((
ret
=
add_to_pktbuf
(
&
s
->
internal
->
parse_queue
,
&
out_pkt
,
ret
=
add_to_pktbuf
(
&
s
->
internal
->
parse_queue
,
&
out_pkt
,
&
s
->
internal
->
parse_queue_end
,
&
s
->
internal
->
parse_queue_end
,
1
);
1
)))
{
av_packet_unref
(
&
out_pkt
);
av_packet_unref
(
&
out_pkt
);
if
(
ret
<
0
)
goto
fail
;
goto
fail
;
}
}
}
/* end of the stream => close and free the parser */
/* end of the stream => close and free the parser */
...
...
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