Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b1a17953
Commit
b1a17953
authored
Jun 27, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lpc: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f1136b2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lpc.c
libavcodec/lpc.c
+3
-2
No files found.
libavcodec/lpc.c
View file @
b1a17953
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#define LPC_USE_DOUBLE
#define LPC_USE_DOUBLE
#include "lpc.h"
#include "lpc.h"
#include "libavutil/avassert.h"
/**
/**
...
@@ -37,7 +38,7 @@ static void lpc_apply_welch_window_c(const int32_t *data, int len,
...
@@ -37,7 +38,7 @@ static void lpc_apply_welch_window_c(const int32_t *data, int len,
/* The optimization in commit fa4ed8c does not support odd len.
/* The optimization in commit fa4ed8c does not support odd len.
* If someone wants odd len extend that change. */
* If someone wants odd len extend that change. */
a
ssert
(
!
(
len
&
1
));
a
v_assert2
(
!
(
len
&
1
));
n2
=
(
len
>>
1
);
n2
=
(
len
>>
1
);
c
=
2
.
0
/
(
len
-
1
.
0
);
c
=
2
.
0
/
(
len
-
1
.
0
);
...
@@ -166,7 +167,7 @@ int ff_lpc_calc_coefs(LPCContext *s,
...
@@ -166,7 +167,7 @@ int ff_lpc_calc_coefs(LPCContext *s,
int
i
,
j
,
pass
;
int
i
,
j
,
pass
;
int
opt_order
;
int
opt_order
;
a
ssert
(
max_order
>=
MIN_LPC_ORDER
&&
max_order
<=
MAX_LPC_ORDER
&&
a
v_assert2
(
max_order
>=
MIN_LPC_ORDER
&&
max_order
<=
MAX_LPC_ORDER
&&
lpc_type
>
FF_LPC_TYPE_FIXED
);
lpc_type
>
FF_LPC_TYPE_FIXED
);
/* reinit LPC context if parameters have changed */
/* reinit LPC context if parameters have changed */
...
...
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