[Mplayer-cvslog] CVS: main/libvo vo_aa.c,1.28,1.29

Alban Bedel CVS albeu at mplayerhq.hu
Sun Jun 23 15:17:06 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv17392/libvo

Modified Files:
	vo_aa.c 
Log Message:
Use the new Y8 support in place of YV12.


Index: vo_aa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_aa.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- vo_aa.c	27 May 2002 17:35:57 -0000	1.28
+++ vo_aa.c	23 Jun 2002 13:17:03 -0000	1.29
@@ -120,18 +120,16 @@
     screen_y = (aa_scrheight(c) - screen_h) / 2;
     
     if(sws) freeSwsContext(sws);
-    // Use YV12 while Y8/Y800 isn't avaible as sws output :-(
     sws = getSwsContextFromCmdLine(src_width,src_height,image_format,
-				   image_width,image_height,IMGFMT_YV12);
+				   image_width,image_height,IMGFMT_Y8);
 
     image[0] = aa_image(c) + image_y * image_width + image_x;
     image[1] = NULL;
-    // Allocate the V plan for YV12
-    image[2] = realloc(image[2], image_width * image_height / 4);
+    image[2] = NULL;
 
     image_stride[0] = image_width;
     image_stride[1] = 0; 
-    image_stride[2] = image_width / 2;
+    image_stride[2] = 0;
 
     showosdmessage=0;
 
@@ -528,7 +526,6 @@
     }
 #endif
     aa_close(c);
-    if(image[2]) free(image[2]);
 }
 
 #ifdef USE_OSD




More information about the MPlayer-cvslog mailing list