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
cd4d9df2
Commit
cd4d9df2
authored
Jul 30, 2015
by
Alexandra Hájková
Committed by
Anton Khirnov
Jul 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asfdec: free AVDictionaries properly when closing the demuxer
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
90e648c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
asfdec.c
libavformat/asfdec.c
+5
-3
No files found.
libavformat/asfdec.c
View file @
cd4d9df2
...
...
@@ -1453,10 +1453,12 @@ static int asf_read_close(AVFormatContext *s)
ASFContext
*
asf
=
s
->
priv_data
;
int
i
;
for
(
i
=
0
;
i
<
asf
->
nb_streams
;
i
++
)
{
av_free_packet
(
&
asf
->
asf_st
[
i
]
->
pkt
.
avpkt
);
av_freep
(
&
asf
->
asf_st
[
i
]);
for
(
i
=
0
;
i
<
ASF_MAX_STREAMS
;
i
++
)
{
av_dict_free
(
&
asf
->
asf_sd
[
i
].
asf_met
);
if
(
i
<
asf
->
nb_streams
)
{
av_free_packet
(
&
asf
->
asf_st
[
i
]
->
pkt
.
avpkt
);
av_freep
(
&
asf
->
asf_st
[
i
]);
}
}
asf
->
nb_streams
=
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