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
4908c8ef
Commit
4908c8ef
authored
Aug 14, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
electronicarts: Improve some function/variable names
parent
a90cff13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
electronicarts.c
libavformat/electronicarts.c
+19
-19
No files found.
libavformat/electronicarts.c
View file @
4908c8ef
...
...
@@ -77,7 +77,7 @@ typedef struct EaDemuxContext {
int
num_samples
;
}
EaDemuxContext
;
static
uint32_t
read_arbitary
(
AVIOContext
*
pb
)
static
uint32_t
read_arbit
r
ary
(
AVIOContext
*
pb
)
{
uint8_t
size
,
byte
;
int
i
;
...
...
@@ -99,52 +99,52 @@ static int process_audio_header_elements(AVFormatContext *s)
{
EaDemuxContext
*
ea
=
s
->
priv_data
;
AVIOContext
*
pb
=
s
->
pb
;
int
in
H
eader
=
1
;
int
in
_h
eader
=
1
;
int
compression_type
=
-
1
,
revision
=
-
1
,
revision2
=
-
1
;
ea
->
bytes
=
2
;
ea
->
sample_rate
=
-
1
;
ea
->
num_channels
=
1
;
while
(
!
pb
->
eof_reached
&&
in
H
eader
)
{
int
in
S
ubheader
;
while
(
!
pb
->
eof_reached
&&
in
_h
eader
)
{
int
in
_s
ubheader
;
uint8_t
byte
;
byte
=
avio_r8
(
pb
);
switch
(
byte
)
{
case
0xFD
:
av_log
(
s
,
AV_LOG_DEBUG
,
"entered audio subheader
\n
"
);
in
S
ubheader
=
1
;
while
(
!
pb
->
eof_reached
&&
in
S
ubheader
)
{
in
_s
ubheader
=
1
;
while
(
!
pb
->
eof_reached
&&
in
_s
ubheader
)
{
uint8_t
subbyte
;
subbyte
=
avio_r8
(
pb
);
switch
(
subbyte
)
{
case
0x80
:
revision
=
read_arbitary
(
pb
);
revision
=
read_arbit
r
ary
(
pb
);
av_log
(
s
,
AV_LOG_DEBUG
,
"revision (element 0x80) set to 0x%08x
\n
"
,
revision
);
break
;
case
0x82
:
ea
->
num_channels
=
read_arbitary
(
pb
);
ea
->
num_channels
=
read_arbit
r
ary
(
pb
);
av_log
(
s
,
AV_LOG_DEBUG
,
"num_channels (element 0x82) set to 0x%08x
\n
"
,
ea
->
num_channels
);
break
;
case
0x83
:
compression_type
=
read_arbitary
(
pb
);
compression_type
=
read_arbit
r
ary
(
pb
);
av_log
(
s
,
AV_LOG_DEBUG
,
"compression_type (element 0x83) set to 0x%08x
\n
"
,
compression_type
);
break
;
case
0x84
:
ea
->
sample_rate
=
read_arbitary
(
pb
);
ea
->
sample_rate
=
read_arbit
r
ary
(
pb
);
av_log
(
s
,
AV_LOG_DEBUG
,
"sample_rate (element 0x84) set to %i
\n
"
,
ea
->
sample_rate
);
break
;
case
0x85
:
ea
->
num_samples
=
read_arbitary
(
pb
);
ea
->
num_samples
=
read_arbit
r
ary
(
pb
);
av_log
(
s
,
AV_LOG_DEBUG
,
"num_samples (element 0x85) set to 0x%08x
\n
"
,
ea
->
num_samples
);
...
...
@@ -152,12 +152,12 @@ static int process_audio_header_elements(AVFormatContext *s)
case
0x8A
:
av_log
(
s
,
AV_LOG_DEBUG
,
"element 0x%02x set to 0x%08x
\n
"
,
subbyte
,
read_arbitary
(
pb
));
subbyte
,
read_arbit
r
ary
(
pb
));
av_log
(
s
,
AV_LOG_DEBUG
,
"exited audio subheader
\n
"
);
in
S
ubheader
=
0
;
in
_s
ubheader
=
0
;
break
;
case
0xA0
:
revision2
=
read_arbitary
(
pb
);
revision2
=
read_arbit
r
ary
(
pb
);
av_log
(
s
,
AV_LOG_DEBUG
,
"revision2 (element 0xA0) set to 0x%08x
\n
"
,
revision2
);
...
...
@@ -165,25 +165,25 @@ static int process_audio_header_elements(AVFormatContext *s)
case
0xFF
:
av_log
(
s
,
AV_LOG_DEBUG
,
"end of header block reached (within audio subheader)
\n
"
);
in
S
ubheader
=
0
;
in
H
eader
=
0
;
in
_s
ubheader
=
0
;
in
_h
eader
=
0
;
break
;
default:
av_log
(
s
,
AV_LOG_DEBUG
,
"element 0x%02x set to 0x%08x
\n
"
,
subbyte
,
read_arbitary
(
pb
));
subbyte
,
read_arbit
r
ary
(
pb
));
break
;
}
}
break
;
case
0xFF
:
av_log
(
s
,
AV_LOG_DEBUG
,
"end of header block reached
\n
"
);
in
H
eader
=
0
;
in
_h
eader
=
0
;
break
;
default:
av_log
(
s
,
AV_LOG_DEBUG
,
"header element 0x%02x set to 0x%08x
\n
"
,
byte
,
read_arbitary
(
pb
));
byte
,
read_arbit
r
ary
(
pb
));
break
;
}
}
...
...
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