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
a2c9473d
Commit
a2c9473d
authored
Oct 18, 2007
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: indentation
Originally committed as revision 10805 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
c611463f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
electronicarts.c
libavformat/electronicarts.c
+16
-17
No files found.
libavformat/electronicarts.c
View file @
a2c9473d
...
...
@@ -258,23 +258,22 @@ static int ea_read_header(AVFormatContext *s,
}
if
(
ea
->
audio_codec
)
{
/* initialize the audio decoder stream */
st
=
av_new_stream
(
s
,
0
);
if
(
!
st
)
return
AVERROR
(
ENOMEM
);
av_set_pts_info
(
st
,
33
,
1
,
ea
->
sample_rate
);
st
->
codec
->
codec_type
=
CODEC_TYPE_AUDIO
;
st
->
codec
->
codec_id
=
ea
->
audio_codec
;
st
->
codec
->
codec_tag
=
0
;
/* no tag */
st
->
codec
->
channels
=
ea
->
num_channels
;
st
->
codec
->
sample_rate
=
ea
->
sample_rate
;
st
->
codec
->
bits_per_sample
=
ea
->
bytes
*
8
;
st
->
codec
->
bit_rate
=
st
->
codec
->
channels
*
st
->
codec
->
sample_rate
*
st
->
codec
->
bits_per_sample
/
4
;
st
->
codec
->
block_align
=
st
->
codec
->
channels
*
st
->
codec
->
bits_per_sample
;
ea
->
audio_stream_index
=
st
->
index
;
ea
->
audio_frame_counter
=
0
;
/* initialize the audio decoder stream */
st
=
av_new_stream
(
s
,
0
);
if
(
!
st
)
return
AVERROR
(
ENOMEM
);
av_set_pts_info
(
st
,
33
,
1
,
ea
->
sample_rate
);
st
->
codec
->
codec_type
=
CODEC_TYPE_AUDIO
;
st
->
codec
->
codec_id
=
ea
->
audio_codec
;
st
->
codec
->
codec_tag
=
0
;
/* no tag */
st
->
codec
->
channels
=
ea
->
num_channels
;
st
->
codec
->
sample_rate
=
ea
->
sample_rate
;
st
->
codec
->
bits_per_sample
=
ea
->
bytes
*
8
;
st
->
codec
->
bit_rate
=
st
->
codec
->
channels
*
st
->
codec
->
sample_rate
*
st
->
codec
->
bits_per_sample
/
4
;
st
->
codec
->
block_align
=
st
->
codec
->
channels
*
st
->
codec
->
bits_per_sample
;
ea
->
audio_stream_index
=
st
->
index
;
ea
->
audio_frame_counter
=
0
;
}
return
1
;
...
...
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