[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-cvslog
Subject:    [xine-cvs] CVS: xine-lib/src/post/planar eq2.c,1.16,1.17
From:       Darren Salt <dsalt () users ! sourceforge ! net>
Date:       2007-02-26 19:15:20
Message-ID: E1HLlJg-0002dk-JP () sc8-pr-cvs10 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/xine/xine-lib/src/post/planar
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv10108/src/post/planar

Modified Files:
	eq2.c 
Log Message:
Fix a possible crash in the eq2 plugin.
The wrong width value was used for the U and V parts of the image.

Index: eq2.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/post/planar/eq2.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- eq2.c	26 Mar 2006 14:45:41 -0000	1.16
+++ eq2.c	26 Feb 2007 19:15:15 -0000	1.17
@@ -599,12 +599,12 @@
     pthread_mutex_lock (&this->lock);
 
     for (i = 0; i < 3; i++) {
-      int height;
+      int height, width;
       height = (i==0) ? frame->height : frame->height/2;
-
+      width = (i==0) ? frame->width : frame->width/2;
       if (eq2->param[i].adjust != NULL) {
         eq2->param[i].adjust (&eq2->param[i], out_frame->base[i], yv12_frame->base[i],
-          frame->width, height, out_frame->pitches[i], yv12_frame->pitches[i]);
+          width, height, out_frame->pitches[i], yv12_frame->pitches[i]);
       }
       else {
         xine_fast_memcpy(out_frame->base[i],yv12_frame->base[i],


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic