Commit a5e6cd79 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/avf_avectorscope: fix mistake in previous commit

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 2c10f054
......@@ -269,9 +269,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
}
break;
case AV_SAMPLE_FMT_FLT: {
float *samples = (float *)insamples->data[0] + i * 2;
float *samples = (float *)insamples->data[0];
for (i = 0; i < insamples->nb_samples; i++) {
for (i = 0; i < insamples->nb_samples * 2; i++) {
max = FFMAX(FFABS(samples[i]), max);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment