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
24834c19
Commit
24834c19
authored
Nov 13, 2008
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: rename two variables
Originally committed as revision 15808 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
236bb1ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ac3dec.c
libavcodec/ac3dec.c
+9
-9
No files found.
libavcodec/ac3dec.c
View file @
24834c19
...
@@ -772,7 +772,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
...
@@ -772,7 +772,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
s
->
cpl_in_use
[
blk
]
=
get_bits1
(
gbc
);
s
->
cpl_in_use
[
blk
]
=
get_bits1
(
gbc
);
if
(
s
->
cpl_in_use
[
blk
])
{
if
(
s
->
cpl_in_use
[
blk
])
{
/* coupling in use */
/* coupling in use */
int
cpl_
begin_freq
,
cpl_end_freq
;
int
cpl_
start_subband
,
cpl_end_subband
;
if
(
channel_mode
<
AC3_CHMODE_STEREO
)
{
if
(
channel_mode
<
AC3_CHMODE_STEREO
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"coupling not allowed in mono or dual-mono
\n
"
);
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"coupling not allowed in mono or dual-mono
\n
"
);
...
@@ -801,15 +801,15 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
...
@@ -801,15 +801,15 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
/* coupling frequency range */
/* coupling frequency range */
/* TODO: modify coupling end freq if spectral extension is used */
/* TODO: modify coupling end freq if spectral extension is used */
cpl_
begin_freq
=
get_bits
(
gbc
,
4
);
cpl_
start_subband
=
get_bits
(
gbc
,
4
);
cpl_end_
freq
=
get_bits
(
gbc
,
4
);
cpl_end_
subband
=
get_bits
(
gbc
,
4
);
if
(
3
+
cpl_end_
freq
-
cpl_begin_freq
<
0
)
{
if
(
3
+
cpl_end_
subband
-
cpl_start_subband
<
0
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"3+cplendf = %d < cplbegf = %d
\n
"
,
3
+
cpl_end_
freq
,
cpl_begin_freq
);
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"3+cplendf = %d < cplbegf = %d
\n
"
,
3
+
cpl_end_
subband
,
cpl_start_subband
);
return
-
1
;
return
-
1
;
}
}
s
->
num_cpl_bands
=
s
->
num_cpl_subbands
=
3
+
cpl_end_
freq
-
cpl_begin_freq
;
s
->
num_cpl_bands
=
s
->
num_cpl_subbands
=
3
+
cpl_end_
subband
-
cpl_start_subband
;
s
->
start_freq
[
CPL_CH
]
=
cpl_
begin_freq
*
12
+
37
;
s
->
start_freq
[
CPL_CH
]
=
cpl_
start_subband
*
12
+
37
;
s
->
end_freq
[
CPL_CH
]
=
cpl_end_
freq
*
12
+
73
;
s
->
end_freq
[
CPL_CH
]
=
cpl_end_
subband
*
12
+
73
;
/* coupling band structure */
/* coupling band structure */
if
(
!
s
->
eac3
||
get_bits1
(
gbc
))
{
if
(
!
s
->
eac3
||
get_bits1
(
gbc
))
{
...
@@ -818,7 +818,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
...
@@ -818,7 +818,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
}
}
}
else
if
(
!
blk
)
{
}
else
if
(
!
blk
)
{
memcpy
(
s
->
cpl_band_struct
,
memcpy
(
s
->
cpl_band_struct
,
&
ff_eac3_default_cpl_band_struct
[
cpl_
begin_freq
+
1
],
&
ff_eac3_default_cpl_band_struct
[
cpl_
start_subband
+
1
],
s
->
num_cpl_subbands
-
1
);
s
->
num_cpl_subbands
-
1
);
}
}
s
->
cpl_band_struct
[
s
->
num_cpl_subbands
-
1
]
=
0
;
s
->
cpl_band_struct
[
s
->
num_cpl_subbands
-
1
]
=
0
;
...
...
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