[Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.68,1.69

Michael Niedermayer michael at mplayer.dev.hu
Sat Feb 16 14:12:54 CET 2002


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

Modified Files:
	vo_x11.c 
Log Message:
101 (NULL->srcW, NULL->srcH)


Index: vo_x11.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_x11.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- vo_x11.c	15 Feb 2002 22:31:10 -0000	1.68
+++ vo_x11.c	16 Feb 2002 13:12:51 -0000	1.69
@@ -538,13 +538,13 @@
 static uint32_t draw_frame( uint8_t *src[] ){
       int stride[3]= {0,0,0};
       
-      if     (in_format==IMGFMT_YUY2)  stride[0]=swsContext->srcW*2;
-      else if(in_format==IMGFMT_BGR15) stride[0]=swsContext->srcW*2;
-      else if(in_format==IMGFMT_BGR16) stride[0]=swsContext->srcW*2;
-      else if(in_format==IMGFMT_BGR24) stride[0]=swsContext->srcW*3;
-      else if(in_format==IMGFMT_BGR32) stride[0]=swsContext->srcW*4;
+      if     (in_format==IMGFMT_YUY2)  stride[0]=srcW*2;
+      else if(in_format==IMGFMT_BGR15) stride[0]=srcW*2;
+      else if(in_format==IMGFMT_BGR16) stride[0]=srcW*2;
+      else if(in_format==IMGFMT_BGR24) stride[0]=srcW*3;
+      else if(in_format==IMGFMT_BGR32) stride[0]=srcW*4;
       
-      return draw_slice(src, stride, swsContext->srcW, swsContext->srcH, 0, 0);
+      return draw_slice(src, stride, srcW, srcH, 0, 0);
 }
 
 static uint32_t query_format( uint32_t format )




More information about the MPlayer-cvslog mailing list