diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-13 20:32:35 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-13 20:32:54 +0200 |
commit | 1df441eaa81b7ceaafa4c896a08cbe93a81a75fa (patch) | |
tree | 8bcac527ac3242ace3e27f11b2a767d142e71025 /libavfilter/avf_showcqt.c | |
parent | 97c285e61bc39d0f6e556988d71476c8e8798bab (diff) | |
download | ffmpeg-1df441eaa81b7ceaafa4c896a08cbe93a81a75fa.tar.gz |
vfilter/avf_showcqt: fix 'mixed declarations and code'
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avf_showcqt.c')
-rw-r--r-- | libavfilter/avf_showcqt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c index 1e59bd82c0..652f0776bb 100644 --- a/libavfilter/avf_showcqt.c +++ b/libavfilter/avf_showcqt.c @@ -387,6 +387,8 @@ static int plot_cqt(AVFilterLink *inlink) if (!s->spectogram_count) { uint8_t *data = (uint8_t*) s->outpicref->data[0]; float rcp_result[VIDEO_WIDTH]; + int total_length = linesize * spectogram_height; + int back_length = linesize * s->spectogram_index; for (x = 0; x < video_width; x++) rcp_result[x] = 1.0f / (result[x][3]+0.0001f); @@ -448,8 +450,6 @@ static int plot_cqt(AVFilterLink *inlink) } /* drawing spectogram/sonogram */ - int total_length = linesize * spectogram_height; - int back_length = linesize * s->spectogram_index; data += spectogram_start * linesize; memcpy(data, s->spectogram + s->spectogram_index*linesize, total_length - back_length); |