[FFmpeg-cvslog] avfilter/vf_v360: reverse order of remap for loops

Paul B Mahol git at videolan.org
Mon Sep 16 20:25:20 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Sep 16 18:03:16 2019 +0200| [a09213da23e7f580bcc455db4e7b527816f5ddf5] | committer: Paul B Mahol

avfilter/vf_v360: reverse order of remap for loops

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

 libavfilter/vf_v360.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index 0f8aa2c34f..117002b22b 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -2478,8 +2478,8 @@ static int config_output(AVFilterLink *outlink)
         float vec[3];
         XYRemap rmap;
 
-        for (int i = 0; i < width; i++) {
-            for (int j = 0; j < height; j++) {
+        for (int j = 0; j < height; j++) {
+            for (int i = 0; i < width; i++) {
                 uint16_t *u = s->u[p] + (j * uv_linesize + i) * elements;
                 uint16_t *v = s->v[p] + (j * uv_linesize + i) * elements;
                 int16_t *ker = s->ker[p] + (j * uv_linesize + i) * elements;



More information about the ffmpeg-cvslog mailing list