[FFmpeg-soc] [soc]: r1633 - libavfilter/vf_hflip.c

benoit subversion at mplayerhq.hu
Fri Dec 21 10:25:03 CET 2007


Author: benoit
Date: Fri Dec 21 10:25:03 2007
New Revision: 1633

Log:
Fix wrong offset.


Modified:
   libavfilter/vf_hflip.c

Modified: libavfilter/vf_hflip.c
==============================================================================
--- libavfilter/vf_hflip.c	(original)
+++ libavfilter/vf_hflip.c	Fri Dec 21 10:25:03 2007
@@ -46,7 +46,7 @@ static void draw_slice(AVFilterLink *lin
 
     /* luma plane */
     outrow = out->data[0] + y * out->linesize[0];
-    inrow  = in-> data[0] + y * in-> linesize[0] + in->w-y;
+    inrow  = in-> data[0] + y * in-> linesize[0] + in->w;
     for(i = 0; i < h; i++) {
         for(j = 0; j < link->w; j++)
             outrow[j] = inrow[-j];
@@ -59,7 +59,7 @@ static void draw_slice(AVFilterLink *lin
         if (in->data[plane]) {
             outrow = out->data[plane] + (y>>flip->vsub) * out->linesize[plane];
             inrow  = in-> data[plane] + (y>>flip->vsub) * in-> linesize[plane] +
-                     ((link->w-y) >> flip->hsub);
+                     (link->w >> flip->hsub);
 
             for(i = 0; i < h >> flip->vsub; i++) {
                 for(j = 0; j < link->w >> flip->hsub; j++)



More information about the FFmpeg-soc mailing list