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
5d55e966
Commit
5d55e966
authored
Feb 01, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use avcodec_decode_audio2()
Originally committed as revision 7792 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
30e88789
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ffmpeg.c
ffmpeg.c
+2
-1
No files found.
ffmpeg.c
View file @
5d55e966
...
@@ -1066,9 +1066,10 @@ static int output_packet(AVInputStream *ist, int ist_index,
...
@@ -1066,9 +1066,10 @@ static int output_packet(AVInputStream *ist, int ist_index,
case
CODEC_TYPE_AUDIO
:{
case
CODEC_TYPE_AUDIO
:{
if
(
pkt
)
if
(
pkt
)
samples
=
av_fast_realloc
(
samples
,
&
samples_size
,
FFMAX
(
pkt
->
size
,
AVCODEC_MAX_AUDIO_FRAME_SIZE
));
samples
=
av_fast_realloc
(
samples
,
&
samples_size
,
FFMAX
(
pkt
->
size
,
AVCODEC_MAX_AUDIO_FRAME_SIZE
));
data_size
=
samples_size
;
/* XXX: could avoid copy if PCM 16 bits with same
/* XXX: could avoid copy if PCM 16 bits with same
endianness as CPU */
endianness as CPU */
ret
=
avcodec_decode_audio
(
ist
->
st
->
codec
,
samples
,
&
data_size
,
ret
=
avcodec_decode_audio
2
(
ist
->
st
->
codec
,
samples
,
&
data_size
,
ptr
,
len
);
ptr
,
len
);
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
fail_decode
;
goto
fail_decode
;
...
...
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