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
f7f4a901
Commit
f7f4a901
authored
Dec 23, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/rtpdec: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bb858e67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rtpdec.c
libavformat/rtpdec.c
+4
-4
No files found.
libavformat/rtpdec.c
View file @
f7f4a901
...
...
@@ -666,8 +666,8 @@ void ff_rtp_reset_packet_queue(RTPDemuxContext *s)
{
while
(
s
->
queue
)
{
RTPPacket
*
next
=
s
->
queue
->
next
;
av_free
(
s
->
queue
->
buf
);
av_free
(
s
->
queue
);
av_free
p
(
&
s
->
queue
->
buf
);
av_free
p
(
&
s
->
queue
);
s
->
queue
=
next
;
}
s
->
seq
=
0
;
...
...
@@ -725,8 +725,8 @@ static int rtp_parse_queued_packet(RTPDemuxContext *s, AVPacket *pkt)
/* Parse the first packet in the queue, and dequeue it */
rv
=
rtp_parse_packet_internal
(
s
,
pkt
,
s
->
queue
->
buf
,
s
->
queue
->
len
);
next
=
s
->
queue
->
next
;
av_free
(
s
->
queue
->
buf
);
av_free
(
s
->
queue
);
av_free
p
(
&
s
->
queue
->
buf
);
av_free
p
(
&
s
->
queue
);
s
->
queue
=
next
;
s
->
queue_len
--
;
return
rv
;
...
...
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