[FFmpeg-cvslog] avfilter/avf_avectorscope: fix mistake in previous commit

Paul B Mahol git at videolan.org
Tue Sep 5 12:56:44 EEST 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Sep  5 11:55:23 2017 +0200| [a5e6cd79ec343937129c17747447ba37d006859b] | committer: Paul B Mahol

avfilter/avf_avectorscope: fix mistake in previous commit

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5e6cd79ec343937129c17747447ba37d006859b
---

 libavfilter/avf_avectorscope.c | 4 ++--
 1 file 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);
             }
             }



More information about the ffmpeg-cvslog mailing list