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
20015379
Commit
20015379
authored
Oct 23, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cook: cosmetics: Better name for ccpl COOKSubpacket member
parent
13bbefd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
cook.c
libavcodec/cook.c
+7
-4
No files found.
libavcodec/cook.c
View file @
20015379
...
...
@@ -79,7 +79,7 @@ typedef struct {
int
samples_per_channel
;
int
log2_numvector_size
;
unsigned
int
channel_mask
;
VLC
c
cpl
;
///< channel coupling
VLC
c
hannel_coupling
;
int
joint_stereo
;
int
bits_per_subpacket
;
int
bits_per_subpdiv
;
...
...
@@ -205,7 +205,8 @@ static av_cold int init_cook_vlc_tables(COOKContext *q)
for
(
i
=
0
;
i
<
q
->
num_subpackets
;
i
++
)
{
if
(
q
->
subpacket
[
i
].
joint_stereo
==
1
)
{
result
|=
init_vlc
(
&
q
->
subpacket
[
i
].
ccpl
,
6
,
(
1
<<
q
->
subpacket
[
i
].
js_vlc_bits
)
-
1
,
result
|=
init_vlc
(
&
q
->
subpacket
[
i
].
channel_coupling
,
6
,
(
1
<<
q
->
subpacket
[
i
].
js_vlc_bits
)
-
1
,
ccpl_huffbits
[
q
->
subpacket
[
i
].
js_vlc_bits
-
2
],
1
,
1
,
ccpl_huffcodes
[
q
->
subpacket
[
i
].
js_vlc_bits
-
2
],
2
,
2
,
0
);
av_log
(
q
->
avctx
,
AV_LOG_DEBUG
,
"subpacket %i Joint-stereo VLC used.
\n
"
,
i
);
...
...
@@ -326,7 +327,7 @@ static av_cold int cook_decode_close(AVCodecContext *avctx)
for
(
i
=
0
;
i
<
7
;
i
++
)
ff_free_vlc
(
&
q
->
sqvh
[
i
]);
for
(
i
=
0
;
i
<
q
->
num_subpackets
;
i
++
)
ff_free_vlc
(
&
q
->
subpacket
[
i
].
c
cpl
);
ff_free_vlc
(
&
q
->
subpacket
[
i
].
c
hannel_coupling
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"Memory deallocated.
\n
"
);
...
...
@@ -767,7 +768,9 @@ static void decouple_info(COOKContext *q, COOKSubpacket *p, int *decouple_tab)
if
(
vlc
)
for
(
i
=
0
;
i
<
length
;
i
++
)
decouple_tab
[
start
+
i
]
=
get_vlc2
(
&
q
->
gb
,
p
->
ccpl
.
table
,
p
->
ccpl
.
bits
,
2
);
decouple_tab
[
start
+
i
]
=
get_vlc2
(
&
q
->
gb
,
p
->
channel_coupling
.
table
,
p
->
channel_coupling
.
bits
,
2
);
else
for
(
i
=
0
;
i
<
length
;
i
++
)
decouple_tab
[
start
+
i
]
=
get_bits
(
&
q
->
gb
,
p
->
js_vlc_bits
);
...
...
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