diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-09-05 11:55:23 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-09-05 11:55:23 +0200 |
commit | a5e6cd79ec343937129c17747447ba37d006859b (patch) | |
tree | 464827507ef73fab07e0023b32d5a9cc934fe6fc /libavfilter | |
parent | 2c10f054c2bcd4500ef7f2c88257c5df8933ef3c (diff) | |
download | ffmpeg-a5e6cd79ec343937129c17747447ba37d006859b.tar.gz |
avfilter/avf_avectorscope: fix mistake in previous commit
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avf_avectorscope.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c index b24011bd66..c8ff0698e3 100644 --- a/libavfilter/avf_avectorscope.c +++ b/libavfilter/avf_avectorscope.c @@ -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); } } |