Browse Source

avfilter/avf_showspectrum: fix macro ()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
04776cedec
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/avf_showspectrum.c

+ 2
- 2
libavfilter/avf_showspectrum.c View File

@@ -323,8 +323,8 @@ static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples, int nb
av_rdft_calc(s->rdft, s->rdft_data[ch]);

/* fill a new spectrum column */
#define RE(y, ch) s->rdft_data[ch][2 * y + 0]
#define IM(y, ch) s->rdft_data[ch][2 * y + 1]
#define RE(y, ch) s->rdft_data[ch][2 * (y) + 0]
#define IM(y, ch) s->rdft_data[ch][2 * (y) + 1]
#define MAGNITUDE(y, ch) hypot(RE(y, ch), IM(y, ch))

/* initialize buffer for combining to black */


Loading…
Cancel
Save