[xiph-cvs] cvs commit: snatch x11.c

Monty xiphmont at xiph.org
Thu Nov 15 22:04:15 PST 2001



xiphmont    01/11/15 22:04:14

  Modified:    .        x11.c
  Log:
  Argh!  Missed both a signed/unsigned and writing out the correct,
  evened width/height
  
  Monty

Revision  Changes    Path
1.25      +3 -3      snatch/x11.c

Index: x11.c
===================================================================
RCS file: /usr/local/cvsroot/snatch/x11.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- x11.c	2001/11/16 04:19:14	1.24
+++ x11.c	2001/11/16 06:04:14	1.25
@@ -528,8 +528,8 @@
 
     pthread_mutex_unlock(&output_mutex);
     bigtime(&a,&b);
-    len=sprintf(cbuf,"YUV12 %ld %ld %d %d %ld:",a,b,image->width,
-		image->height,yuv_n);
+    len=sprintf(cbuf,"YUV12 %ld %ld %d %d %ld:",a,b,yuv_w,
+		yuv_h,yuv_n);
         
     if(worksize<yuv_n){
       if(worksize==0)
@@ -545,7 +545,7 @@
       unsigned char *u=workbuffer+yuv_w*yuv_h;
       unsigned char *v=u+yuv_w*yuv_h/4;
       unsigned char *ptr1=image->data;
-      char *ptr2=image->data+image->bytes_per_line;
+      unsigned char *ptr2=image->data+image->bytes_per_line;
       if(image->byte_order){      
         
         for(i=0;i<yuv_h;i+=2){

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list