projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a3955
)
avcodec/lpc: Use a function pointer from an initialized context
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 30 Jun 2013 10:34:50 +0000
(12:34 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 30 Jun 2013 10:40:16 +0000
(12:40 +0200)
Fixes null pointer dereference
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/lpc.c
patch
|
blob
|
history
diff --git
a/libavcodec/lpc.c
b/libavcodec/lpc.c
index
4f1ccce
..
657a66d
100644
(file)
--- a/
libavcodec/lpc.c
+++ b/
libavcodec/lpc.c
@@
-225,7
+225,7
@@
int ff_lpc_calc_coefs(LPCContext *s,
if(pass){
double eval, inv, rinv;
- eval= m[
(pass-1)
&1].evaluate_lls(&m[(pass-1)&1], var+1, max_order-1);
+ eval= m[
pass
&1].evaluate_lls(&m[(pass-1)&1], var+1, max_order-1);
eval= (512>>pass) + fabs(eval - var[0]);
inv = 1/eval;
rinv = sqrt(inv);