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
36f10380
Commit
36f10380
authored
May 19, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vorbis: use normal integer values for iterators
No need to use fixed-size integers.
parent
98186578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vorbisdec.c
libavcodec/vorbisdec.c
+3
-3
No files found.
libavcodec/vorbisdec.c
View file @
36f10380
...
...
@@ -1306,7 +1306,7 @@ static av_always_inline int setup_classifs(vorbis_context *vc,
vorbis_residue
*
vr
,
uint8_t
*
do_not_decode
,
unsigned
ch_used
,
unsigned
partition_count
)
int
partition_count
)
{
int
p
,
j
,
i
;
unsigned
c_p_c
=
vc
->
codebooks
[
vr
->
classbook
].
dimensions
;
...
...
@@ -1346,10 +1346,10 @@ static av_always_inline int vorbis_residue_decode_internal(vorbis_context *vc,
{
GetBitContext
*
gb
=
&
vc
->
gb
;
unsigned
c_p_c
=
vc
->
codebooks
[
vr
->
classbook
].
dimensions
;
unsigned
ptns_to_read
=
vr
->
ptns_to_read
;
uint8_t
*
classifs
=
vr
->
classifs
;
unsigned
pass
,
ch_used
,
i
,
j
,
k
,
l
;
unsigned
max_output
=
(
ch
-
1
)
*
vlen
;
int
ptns_to_read
=
vr
->
ptns_to_read
;
if
(
vr_type
==
2
)
{
for
(
j
=
1
;
j
<
ch
;
++
j
)
...
...
@@ -1371,7 +1371,7 @@ static av_always_inline int vorbis_residue_decode_internal(vorbis_context *vc,
av_dlog
(
NULL
,
" residue type 0/1/2 decode begin, ch: %d cpc %d
\n
"
,
ch
,
c_p_c
);
for
(
pass
=
0
;
pass
<=
vr
->
maxpass
;
++
pass
)
{
// FIXME OPTIMIZE?
uint16_
t
voffset
,
partition_count
,
j_times_ptns_to_read
;
in
t
voffset
,
partition_count
,
j_times_ptns_to_read
;
voffset
=
vr
->
begin
;
for
(
partition_count
=
0
;
partition_count
<
ptns_to_read
;)
{
// SPEC error
...
...
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