Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
482516c5
Commit
482516c5
authored
Apr 23, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/encoder.c: fixed memory leak.
parent
dc8116dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+1
-3
No files found.
modules/codec/ffmpeg/encoder.c
View file @
482516c5
...
@@ -313,9 +313,6 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
...
@@ -313,9 +313,6 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_enc
->
fmt_in
.
i_codec
=
AOUT_FMT_S16_NE
;
p_enc
->
fmt_in
.
i_codec
=
AOUT_FMT_S16_NE
;
p_context
->
sample_rate
=
p_enc
->
fmt_in
.
audio
.
i_rate
;
p_context
->
sample_rate
=
p_enc
->
fmt_in
.
audio
.
i_rate
;
p_context
->
channels
=
p_enc
->
fmt_in
.
audio
.
i_channels
;
p_context
->
channels
=
p_enc
->
fmt_in
.
audio
.
i_channels
;
p_sys
->
i_frame_size
=
p_context
->
frame_size
*
2
*
p_context
->
channels
;
p_sys
->
p_buffer
=
malloc
(
p_sys
->
i_frame_size
);
p_sys
->
p_buffer_out
=
malloc
(
2
*
AVCODEC_MAX_AUDIO_FRAME_SIZE
);
}
}
/* Misc parameters */
/* Misc parameters */
...
@@ -361,6 +358,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
...
@@ -361,6 +358,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
if
(
p_enc
->
fmt_in
.
i_cat
==
AUDIO_ES
)
if
(
p_enc
->
fmt_in
.
i_cat
==
AUDIO_ES
)
{
{
p_sys
->
p_buffer_out
=
malloc
(
2
*
AVCODEC_MAX_AUDIO_FRAME_SIZE
);
p_sys
->
i_frame_size
=
p_context
->
frame_size
*
2
*
p_context
->
channels
;
p_sys
->
i_frame_size
=
p_context
->
frame_size
*
2
*
p_context
->
channels
;
p_sys
->
p_buffer
=
malloc
(
p_sys
->
i_frame_size
);
p_sys
->
p_buffer
=
malloc
(
p_sys
->
i_frame_size
);
}
}
...
...
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