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
c46400dd
Commit
c46400dd
authored
Feb 22, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cafenc: do not leak caf->pkt_sizes
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
21f68528
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cafenc.c
libavformat/cafenc.c
+2
-2
No files found.
libavformat/cafenc.c
View file @
c46400dd
...
@@ -238,11 +238,11 @@ static int caf_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -238,11 +238,11 @@ static int caf_write_packet(AVFormatContext *s, AVPacket *pkt)
static
int
caf_write_trailer
(
AVFormatContext
*
s
)
static
int
caf_write_trailer
(
AVFormatContext
*
s
)
{
{
CAFContext
*
caf
=
s
->
priv_data
;
AVIOContext
*
pb
=
s
->
pb
;
AVIOContext
*
pb
=
s
->
pb
;
AVCodecContext
*
enc
=
s
->
streams
[
0
]
->
codec
;
AVCodecContext
*
enc
=
s
->
streams
[
0
]
->
codec
;
if
(
pb
->
seekable
)
{
if
(
pb
->
seekable
)
{
CAFContext
*
caf
=
s
->
priv_data
;
int64_t
file_size
=
avio_tell
(
pb
);
int64_t
file_size
=
avio_tell
(
pb
);
avio_seek
(
pb
,
caf
->
data
,
SEEK_SET
);
avio_seek
(
pb
,
caf
->
data
,
SEEK_SET
);
...
@@ -256,11 +256,11 @@ static int caf_write_trailer(AVFormatContext *s)
...
@@ -256,11 +256,11 @@ static int caf_write_trailer(AVFormatContext *s)
avio_wb32
(
pb
,
0
);
///< mPrimingFrames
avio_wb32
(
pb
,
0
);
///< mPrimingFrames
avio_wb32
(
pb
,
0
);
///< mRemainderFrames
avio_wb32
(
pb
,
0
);
///< mRemainderFrames
avio_write
(
pb
,
caf
->
pkt_sizes
,
caf
->
size_entries_used
);
avio_write
(
pb
,
caf
->
pkt_sizes
,
caf
->
size_entries_used
);
av_freep
(
&
caf
->
pkt_sizes
);
caf
->
size_buffer_size
=
0
;
caf
->
size_buffer_size
=
0
;
}
}
avio_flush
(
pb
);
avio_flush
(
pb
);
}
}
av_freep
(
&
caf
->
pkt_sizes
);
return
0
;
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