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
af3c06b4
Commit
af3c06b4
authored
Sep 27, 2011
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: Use the size of the decode sample format when allocating the audio samples buffer.
parent
d3c1d37a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
avconv.c
avconv.c
+2
-2
No files found.
avconv.c
View file @
af3c06b4
...
@@ -1573,8 +1573,8 @@ static int output_packet(InputStream *ist, int ist_index,
...
@@ -1573,8 +1573,8 @@ static int output_packet(InputStream *ist, int ist_index,
if
(
ist
->
decoding_needed
)
{
if
(
ist
->
decoding_needed
)
{
switch
(
ist
->
st
->
codec
->
codec_type
)
{
switch
(
ist
->
st
->
codec
->
codec_type
)
{
case
AVMEDIA_TYPE_AUDIO
:{
case
AVMEDIA_TYPE_AUDIO
:{
if
(
pkt
&&
samples_size
<
FFMAX
(
pkt
->
size
*
sizeof
(
*
samples
)
,
AVCODEC_MAX_AUDIO_FRAME_SIZE
))
{
if
(
pkt
&&
samples_size
<
FFMAX
(
pkt
->
size
*
bps
,
AVCODEC_MAX_AUDIO_FRAME_SIZE
))
{
samples_size
=
FFMAX
(
pkt
->
size
*
sizeof
(
*
samples
)
,
AVCODEC_MAX_AUDIO_FRAME_SIZE
);
samples_size
=
FFMAX
(
pkt
->
size
*
bps
,
AVCODEC_MAX_AUDIO_FRAME_SIZE
);
av_free
(
samples
);
av_free
(
samples
);
samples
=
av_malloc
(
samples_size
);
samples
=
av_malloc
(
samples_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