Browse Source

Assert that ff_lpc_calc_coefs() is called with a valid LPC method.

Patch by Patrik Kullman (patrik A yes D nu).

Originally committed as revision 17217 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Patrik Kullman Justin Ruggles 16 years ago
parent
commit
eabe8c7033
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/lpc.c

+ 1
- 1
libavcodec/lpc.c View File

@@ -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);


Loading…
Cancel
Save