comparison flacenc.c @ 6341:56592543346c libavcodec

assert() and note about odd len.
author michael
date Sat, 09 Feb 2008 14:45:36 +0000
parents 47a97ef90720
children 48759bfbd073
comparison
equal deleted inserted replaced
6340:575e0a847f0c 6341:56592543346c
590 static void apply_welch_window(const int32_t *data, int len, double *w_data) 590 static void apply_welch_window(const int32_t *data, int len, double *w_data)
591 { 591 {
592 int i, n2; 592 int i, n2;
593 double w; 593 double w;
594 double c; 594 double c;
595
596 assert(!(len&1)); //the optimization in r11881 does not support odd len
597 //if someone wants odd len extend the change in r11881
595 598
596 n2 = (len >> 1); 599 n2 = (len >> 1);
597 c = 2.0 / (len - 1.0); 600 c = 2.0 / (len - 1.0);
598 601
599 w_data+=n2; 602 w_data+=n2;