diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-09-03 17:21:52 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-09-04 20:07:08 +0300 |
commit | fda05554e378d18edaf0a810f20341709c7beecf (patch) | |
tree | d2a1d2932ebfc52f70f60da0f8d2a2ad014376bc /libavfilter/vf_waveform.c | |
parent | 5b658bcc8ad283f709ef17917d8ba5e08814c445 (diff) |
avfilter/vf_waveform: reduce number of operations a little
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_waveform.c')
-rw-r--r-- | libavfilter/vf_waveform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c index db99d33169..21151a6e9f 100644 --- a/libavfilter/vf_waveform.c +++ b/libavfilter/vf_waveform.c @@ -588,7 +588,7 @@ static void flat(WaveformContext *s, AVFrame *in, AVFrame *out, if (mirror) { d0_data += s->size - 1; - d1_data += s->size; + d1_data += s->size - 1; } for (y = 0; y < src_h; y++) { @@ -607,7 +607,7 @@ static void flat(WaveformContext *s, AVFrame *in, AVFrame *out, for (p = c0 - c1; p < c0 + c1; p++) { if (mirror) - target = d1_data - p - 1; + target = d1_data - p; else target = d1_data + p; |