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
1fa0284c
Commit
1fa0284c
authored
Jul 26, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcelpdec: change asserts to av_asserts
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
fdf9296d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
qcelpdec.c
libavcodec/qcelpdec.c
+4
-6
No files found.
libavcodec/qcelpdec.c
View file @
1fa0284c
...
...
@@ -29,6 +29,7 @@
#include <stddef.h>
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "avcodec.h"
...
...
@@ -40,9 +41,6 @@
#include "acelp_vectors.h"
#include "lsp.h"
#undef NDEBUG
#include <assert.h>
typedef
enum
{
I_F_Q
=
-
1
,
/**< insufficient frame quality */
SILENCE
,
...
...
@@ -135,7 +133,7 @@ static int decode_lspf(QCELPContext *q, float *lspf)
}
else
{
erasure_coeff
=
QCELP_LSP_OCTAVE_PREDICTOR
;
a
ssert
(
q
->
bitrate
==
I_F_Q
);
a
v_assert2
(
q
->
bitrate
==
I_F_Q
);
if
(
q
->
erasure_count
>
1
)
erasure_coeff
*=
q
->
erasure_count
<
4
?
0
.
9
:
0
.
7
;
...
...
@@ -239,7 +237,7 @@ static void decode_gain_and_index(QCELPContext *q, float *gain)
av_clip
((
q
->
prev_g1
[
0
]
+
q
->
prev_g1
[
1
])
/
2
-
5
,
0
,
54
);
subframes_count
=
8
;
}
else
{
a
ssert
(
q
->
bitrate
==
I_F_Q
);
a
v_assert2
(
q
->
bitrate
==
I_F_Q
);
g1
[
0
]
=
q
->
prev_g1
[
1
];
switch
(
q
->
erasure_count
)
{
...
...
@@ -486,7 +484,7 @@ static void apply_pitch_filters(QCELPContext *q, float *cdn_vector)
else
max_pitch_gain
=
0
.
0
;
}
else
{
a
ssert
(
q
->
bitrate
==
SILENCE
);
a
v_assert2
(
q
->
bitrate
==
SILENCE
);
max_pitch_gain
=
1
.
0
;
}
for
(
i
=
0
;
i
<
4
;
i
++
)
...
...
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