avfilter/avf_avectorscope: fix mistake in previous commit

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-09-05 11:55:23 +02:00
parent 2c10f054c2
commit a5e6cd79ec
1 changed files with 2 additions and 2 deletions

View File

@ -269,9 +269,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
} }
break; break;
case AV_SAMPLE_FMT_FLT: { 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); max = FFMAX(FFABS(samples[i]), max);
} }
} }