Revision fa4ed8c1 libavcodec/flacenc.c

View differences:

libavcodec/flacenc.c
595 595

  
596 596
    n2 = (len >> 1);
597 597
    c = 2.0 / (len - 1.0);
598

  
599
    w_data+=n2;
600
      data+=n2;
598 601
    for(i=0; i<n2; i++) {
599
        w = c - i - 1.0;
602
        w = c - n2 + i;
600 603
        w = 1.0 - (w * w);
601
        w_data[i] = data[i] * w;
602
        w_data[len-1-i] = data[len-1-i] * w;
604
        w_data[-i-1] = data[-i-1] * w;
605
        w_data[+i  ] = data[+i  ] * w;
603 606
    }
604 607
}
605 608

  

Also available in: Unified diff