changeset 4726:9ff121145b20

101 (NULL->srcW, NULL->srcH)
author michael
date Sat, 16 Feb 2002 13:12:51 +0000
parents 534ef9323eca
children cbef9b843e6d
files libvo/vo_x11.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_x11.c	Sat Feb 16 13:08:14 2002 +0000
+++ b/libvo/vo_x11.c	Sat Feb 16 13:12:51 2002 +0000
@@ -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 )