summaryrefslogtreecommitdiff
path: root/libavfilter/avf_avectorscope.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-08-11 17:30:32 +0200
committerPaul B Mahol <onemda@gmail.com>2016-08-11 17:30:32 +0200
commiteb3137255f5841e7203c3f25b297fe99d41c77ea (patch)
tree82c34fdc9ed2728196b60b735768f1c510a7842c /libavfilter/avf_avectorscope.c
parenta130165ed927af2cd8e4f4070e0289486cdcd221 (diff)
avfilter/avf_avectorscope: fix initialization for prev_y in polar mode
Diffstat (limited to 'libavfilter/avf_avectorscope.c')
-rw-r--r--libavfilter/avf_avectorscope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c
index 0db30d370f..3063283efb 100644
--- a/libavfilter/avf_avectorscope.c
+++ b/libavfilter/avf_avectorscope.c
@@ -220,7 +220,7 @@ static int config_output(AVFilterLink *outlink)
outlink->frame_rate = s->frame_rate;
s->prev_x = s->hw = s->w / 2;
- s->prev_y = s->hh = s->h / 2;
+ s->prev_y = s->hh = s->mode == POLAR ? s->h - 1 : s->h / 2;
return 0;
}