mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/avf_avectorscope: fix mistake in previous commit
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
2c10f054c2
commit
a5e6cd79ec
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue