From bf99f6a9ac64dce422fbe2b2279bfb049b6ef69f Mon Sep 17 00:00:00 2001 From: Souryo Date: Sat, 11 Nov 2017 22:11:16 -0500 Subject: [PATCH] Video: Fixed 270 degree rotation being mirrored --- Core/RotateFilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/RotateFilter.cpp b/Core/RotateFilter.cpp index 42a2d67f..28bfa168 100644 --- a/Core/RotateFilter.cpp +++ b/Core/RotateFilter.cpp @@ -52,7 +52,7 @@ uint32_t * RotateFilter::ApplyFilter(uint32_t * inputArgbBuffer, uint32_t width, } } else if(_angle == 270) { for(uint32_t i = 0; i < height; i++) { - for(uint32_t j = 0; j < width; j++) { + for(int j = (int)width - 1; j >= 0; j--) { _outputBuffer[j*height + i] = *input; input++; }