[FFmpeg-cvslog] avfilter/avf_avectorscope: fix initialization for prev_y in polar mode

Paul B Mahol git at videolan.org
Thu Aug 11 18:32:35 EEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Aug 11 17:30:32 2016 +0200| [eb3137255f5841e7203c3f25b297fe99d41c77ea] | committer: Paul B Mahol

avfilter/avf_avectorscope: fix initialization for prev_y in polar mode

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

 libavfilter/avf_avectorscope.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c
index 0db30d3..3063283 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;
 }



More information about the ffmpeg-cvslog mailing list