Revision 166621ab

View differences:

ffplay.c
30 30
#include "libavcodec/audioconvert.h"
31 31
#include "libavcodec/colorspace.h"
32 32
#include "libavcodec/opt.h"
33
#include "libavcodec/fft.h"
33
#include "libavcodec/avfft.h"
34 34

  
35 35
#if CONFIG_AVFILTER
36 36
# include "libavfilter/avfilter.h"
......
165 165
    int16_t sample_array[SAMPLE_ARRAY_SIZE];
166 166
    int sample_array_index;
167 167
    int last_i_start;
168
    RDFTContext rdft;
168
    RDFTContext *rdft;
169 169
    int rdft_bits;
170 170
    int xpos;
171 171

  
......
905 905
    }else{
906 906
        nb_display_channels= FFMIN(nb_display_channels, 2);
907 907
        if(rdft_bits != s->rdft_bits){
908
            ff_rdft_end(&s->rdft);
909
            ff_rdft_init(&s->rdft, rdft_bits, DFT_R2C);
908
            av_rdft_end(s->rdft);
909
            s->rdft = av_rdft_init(rdft_bits, DFT_R2C);
910 910
            s->rdft_bits= rdft_bits;
911 911
        }
912 912
        {
......
920 920
                    if (i >= SAMPLE_ARRAY_SIZE)
921 921
                        i -= SAMPLE_ARRAY_SIZE;
922 922
                }
923
                ff_rdft_calc(&s->rdft, data[ch]);
923
                av_rdft_calc(s->rdft, data[ch]);
924 924
            }
925 925
            //least efficient way to do this, we should of course directly access it but its more than fast enough
926 926
            for(y=0; y<s->height; y++){

Also available in: Unified diff