[vlc-commits] video_filter/transform.c: Horizontal and Vertical flip where swapped.

Jean-Paul Saman git at videolan.org
Wed May 30 13:52:59 CEST 2012


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Wed May 30 13:23:40 2012 +0200| [4f71d0bb6fde63edb765fcc7dae194195a43ef74] | committer: Jean-Paul Saman

video_filter/transform.c: Horizontal and Vertical flip where swapped.

The transform video_filter mixed up horizontal and vertical flip. They
were swapped. This patch corrects that.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4f71d0bb6fde63edb765fcc7dae194195a43ef74
---

 modules/video_filter/transform.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/transform.c b/modules/video_filter/transform.c
index f5df690..6a4ddd8 100644
--- a/modules/video_filter/transform.c
+++ b/modules/video_filter/transform.c
@@ -71,13 +71,13 @@ vlc_module_end()
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
-static void HFlip(int *sx, int *sy, int w, int h, int dx, int dy)
+static void VFlip(int *sx, int *sy, int w, int h, int dx, int dy)
 {
     VLC_UNUSED( h );
     *sx = w - 1 - dx;
     *sy = dy;
 }
-static void VFlip(int *sx, int *sy, int w, int h, int dx, int dy)
+static void HFlip(int *sx, int *sy, int w, int h, int dx, int dy)
 {
     VLC_UNUSED( w );
     *sx = dx;



More information about the vlc-commits mailing list