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
5ae2c73e
Commit
5ae2c73e
authored
Apr 19, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memleaks
Originally committed as revision 1793 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8975ba81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
avidec.c
libavformat/avidec.c
+12
-1
No files found.
libavformat/avidec.c
View file @
5ae2c73e
...
...
@@ -236,7 +236,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_le32
(
pb
);
/* ClrImportant */
st
->
codec
.
extradata_size
=
size
-
10
*
4
;
st
->
codec
.
extradata
=
av_malloc
(
st
->
codec
.
extradata_size
);
//FIXME where should we free this?
st
->
codec
.
extradata
=
av_malloc
(
st
->
codec
.
extradata_size
);
get_buffer
(
pb
,
st
->
codec
.
extradata
,
st
->
codec
.
extradata_size
);
if
(
st
->
codec
.
extradata_size
&
1
)
//FIXME check if the encoder really did this correctly
...
...
@@ -272,6 +272,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
/* check stream number */
if
(
stream_index
!=
s
->
nb_streams
-
1
)
{
fail:
av_free
(
avi
->
buf
);
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
av_freep
(
&
s
->
streams
[
i
]
->
codec
.
extradata
);
av_freep
(
&
s
->
streams
[
i
]);
...
...
@@ -373,6 +374,16 @@ pkt_init:
static
int
avi_read_close
(
AVFormatContext
*
s
)
{
int
i
;
AVIContext
*
avi
=
s
->
priv_data
;
av_free
(
avi
->
buf
);
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
AVStream
*
st
=
s
->
streams
[
i
];
// av_free(st->priv_data);
av_free
(
st
->
codec
.
extradata
);
}
return
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