projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83f63ff
)
Assert that ff_lpc_calc_coefs() is called with a valid LPC method.
author
Patrik Kullman
<patrik@yes.nu>
Fri, 13 Feb 2009 22:03:11 +0000
(22:03 +0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Fri, 13 Feb 2009 22:03:11 +0000
(22:03 +0000)
Patch by Patrik Kullman (patrik A yes D nu).
Originally committed as revision 17217 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/lpc.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/lpc.c
b/libavcodec/lpc.c
index
7f951b4
..
92c701b
100644
(file)
--- a/
libavcodec/lpc.c
+++ b/
libavcodec/lpc.c
@@
-112,7
+112,7
@@
int ff_lpc_calc_coefs(DSPContext *s,
int i, j, pass;
int opt_order;
- assert(max_order >= MIN_LPC_ORDER && max_order <= MAX_LPC_ORDER);
+ assert(max_order >= MIN_LPC_ORDER && max_order <= MAX_LPC_ORDER
&& use_lpc > 0
);
if(use_lpc == 1){
s->flac_compute_autocorr(samples, blocksize, max_order, autoc);