[MPlayer-dev-eng] [PATCH] vo_aa deforms "image" when aspect < screen aspect

Jindrich Makovicka makovick at KMLinux.fjfi.cvut.cz
Mon Jul 22 19:09:05 CEST 2002


Hi again,
here is yet another fix for vo_aa - when image_width is changed via aspect(),
image_stride is set to a wrong(scaled) value instead of correct aa_imgwidth.

--- old/vo_aa.c	Mon May 27 19:35:57 2002
+++ vo_aa.c	Mon Jul 22 18:42:58 2002
@@ -124,12 +124,12 @@
     sws = getSwsContextFromCmdLine(src_width,src_height,image_format,
 				   image_width,image_height,IMGFMT_YV12);
 
-    image[0] = aa_image(c) + image_y * image_width + image_x;
+    image[0] = aa_image(c) + image_y * aa_imgwidth(c) + image_x;
     image[1] = NULL;
     // Allocate the V plan for YV12
     image[2] = realloc(image[2], image_width * image_height / 4);
 
-    image_stride[0] = image_width;
+    image_stride[0] = aa_imgwidth(c);
     image_stride[1] = 0; 
     image_stride[2] = image_width / 2;
 
Regards,

-- 
Jindrich Makovicka



More information about the MPlayer-dev-eng mailing list