OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ef29b
)
compute_lpc_coefs: assert that normalize and fail have a supported combination
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Oct 2012 19:53:29 +0000
(21:53 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Oct 2012 20:16:31 +0000
(22:16 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/lpc.h
patch
|
blob
|
history
diff --git
a/libavcodec/lpc.h
b/libavcodec/lpc.h
index
680e102
..
b9c35bd
100644
(file)
--- a/
libavcodec/lpc.h
+++ b/
libavcodec/lpc.h
@@
-23,6
+23,7
@@
#define AVCODEC_LPC_H
#include <stdint.h>
+#include "libavutil/avassert.h"
#include "dsputil.h"
#define ORDER_METHOD_EST 0
@@
-122,6
+123,8
@@
static inline int compute_lpc_coefs(const LPC_TYPE *autoc, int max_order,
LPC_TYPE err;
LPC_TYPE *lpc_last = lpc;
+ av_assert2(normalize || !fail);
+
if (normalize)
err = *autoc++;