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
f0ca6ffa
Commit
f0ca6ffa
authored
Oct 23, 2015
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avprobe: Unref the packet once it is used
Make sure it does not leak packets. CC: libav-stable@libav.org
parent
9cbae3a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
avprobe.c
avprobe.c
+3
-1
No files found.
avprobe.c
View file @
f0ca6ffa
...
...
@@ -589,8 +589,10 @@ static void show_packets(AVFormatContext *fmt_ctx)
av_init_packet
(
&
pkt
);
probe_array_header
(
"packets"
,
0
);
while
(
!
av_read_frame
(
fmt_ctx
,
&
pkt
))
while
(
!
av_read_frame
(
fmt_ctx
,
&
pkt
))
{
show_packet
(
fmt_ctx
,
&
pkt
);
av_packet_unref
(
&
pkt
);
}
probe_array_footer
(
"packets"
,
0
);
}
...
...
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