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
6d8fd614
Commit
6d8fd614
authored
Jun 04, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vorbis: Kill some pointless debug code
parent
59c6509d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
24 deletions
+2
-24
vorbis.c
libavcodec/vorbis.c
+2
-24
No files found.
libavcodec/vorbis.c
View file @
6d8fd614
...
...
@@ -22,9 +22,9 @@
* @author Denes Balatoni ( dbalatoni programozo hu )
*/
#define BITSTREAM_READER_LE
#include "libavutil/common.h"
#include "avcodec.h"
#include "get_bits.h"
#include "vorbis.h"
...
...
@@ -52,13 +52,8 @@ unsigned int ff_vorbis_nth_root(unsigned int x, unsigned int n)
int
ff_vorbis_len2vlc
(
uint8_t
*
bits
,
uint32_t
*
codes
,
unsigned
num
)
{
uint32_t
exit_at_level
[
33
]
=
{
404
};
unsigned
i
,
j
,
p
,
code
;
#ifdef DEBUG
GetBitContext
gb
;
#endif
for
(
p
=
0
;
(
bits
[
p
]
==
0
)
&&
(
p
<
num
);
++
p
)
;
if
(
p
==
num
)
...
...
@@ -70,14 +65,6 @@ int ff_vorbis_len2vlc(uint8_t *bits, uint32_t *codes, unsigned num)
for
(
i
=
0
;
i
<
bits
[
p
];
++
i
)
exit_at_level
[
i
+
1
]
=
1
<<
i
;
#ifdef DEBUG
av_log
(
NULL
,
AV_LOG_INFO
,
" %u. of %u code len %d code %d - "
,
p
,
num
,
bits
[
p
],
codes
[
p
]);
init_get_bits
(
&
gb
,
(
uint8_t
*
)
&
codes
[
p
],
bits
[
p
]);
for
(
i
=
0
;
i
<
bits
[
p
];
++
i
)
av_log
(
NULL
,
AV_LOG_INFO
,
"%s"
,
get_bits1
(
&
gb
)
?
"1"
:
"0"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"
\n
"
);
#endif
++
p
;
for
(;
p
<
num
;
++
p
)
{
...
...
@@ -97,15 +84,6 @@ int ff_vorbis_len2vlc(uint8_t *bits, uint32_t *codes, unsigned num)
for
(
j
=
i
+
1
;
j
<=
bits
[
p
];
++
j
)
exit_at_level
[
j
]
=
code
+
(
1
<<
(
j
-
1
));
codes
[
p
]
=
code
;
#ifdef DEBUG
av_log
(
NULL
,
AV_LOG_INFO
,
" %d. code len %d code %d - "
,
p
,
bits
[
p
],
codes
[
p
]);
init_get_bits
(
&
gb
,
(
uint8_t
*
)
&
codes
[
p
],
bits
[
p
]);
for
(
i
=
0
;
i
<
bits
[
p
];
++
i
)
av_log
(
NULL
,
AV_LOG_INFO
,
"%s"
,
get_bits1
(
&
gb
)
?
"1"
:
"0"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"
\n
"
);
#endif
}
//no exits should be left (underspecified tree - ie. unused valid vlcs - not allowed by SPEC)
...
...
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