mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vaf_spectrumsynth: Fix mixed declaration and statment
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
cfda1bea4c
commit
48f5244df7
|
@ -392,6 +392,7 @@ static int try_push_frame(AVFilterContext *ctx, int x)
|
||||||
|
|
||||||
if (ch == s->channels - 1) {
|
if (ch == s->channels - 1) {
|
||||||
float *dst;
|
float *dst;
|
||||||
|
int c;
|
||||||
|
|
||||||
out = ff_get_audio_buffer(outlink, s->win_size);
|
out = ff_get_audio_buffer(outlink, s->win_size);
|
||||||
if (!out) {
|
if (!out) {
|
||||||
|
@ -402,7 +403,7 @@ static int try_push_frame(AVFilterContext *ctx, int x)
|
||||||
|
|
||||||
out->pts = s->pts;
|
out->pts = s->pts;
|
||||||
s->pts += s->win_size;
|
s->pts += s->win_size;
|
||||||
for (int c = 0; c < s->channels; c++) {
|
for (c = 0; c < s->channels; c++) {
|
||||||
dst = (float *)out->extended_data[c];
|
dst = (float *)out->extended_data[c];
|
||||||
buf = (float *)s->buffer->extended_data[c];
|
buf = (float *)s->buffer->extended_data[c];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue