summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dahl <matt2000@users.sourceforge.net>2001-11-04 22:49:41 +0000
committerMatthias Dahl <matt2000@users.sourceforge.net>2001-11-04 22:49:41 +0000
commitff1e45636718156209ec666214f6dda679b6cb45 (patch)
treed6fe283938bf8fc8fc385a28ead86eca75afb35d
parentacf66c220c64579207eeb031c7e0878a6ed28dfa (diff)
downloadxine-lib-ff1e45636718156209ec666214f6dda679b6cb45.tar.gz
xine-lib-ff1e45636718156209ec666214f6dda679b6cb45.tar.bz2
Adapting compile warning fix from Chris Rankin <rankincj@yahoo.com>.
CVS patchset: 954 CVS date: 2001/11/04 22:49:41
-rw-r--r--src/video_out/video_out_syncfb.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/video_out/video_out_syncfb.c b/src/video_out/video_out_syncfb.c
index 5391c1f8a..37a6e4bcc 100644
--- a/src/video_out/video_out_syncfb.c
+++ b/src/video_out/video_out_syncfb.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_syncfb.c,v 1.26 2001/11/04 22:43:07 matt2000 Exp $
+ * $Id: video_out_syncfb.c,v 1.27 2001/11/04 22:49:41 matt2000 Exp $
*
* video_out_syncfb.c, SyncFB (for Matrox G200/G400 cards) interface for xine
*
@@ -140,6 +140,8 @@ int gX11Fail;
//
// internal video_out_syncfb functions
//
+
+// FIXME: function untested yet, needs testing!
static void write_frame_YUV422(syncfb_driver_t* this, syncfb_frame_t* frame, uint_8* y, uint_8* cr, uint_8* cb)
{
uint_8* crp;
@@ -197,9 +199,17 @@ static void write_frame_YUV420P2(syncfb_driver_t* this, syncfb_frame_t* frame, u
tmp32 = (uint_32 *)dest;
w = (src_width/8) * 2;
- while (w--) {
- *tmp32 = *rcr | (*rcb << 8) | (*rcr << 16) | (*rcb << 24);
- tmp32++; rcr++; rcb++;
+ while(w--) {
+ register uint_32 temp;
+
+ temp = (*rcr) | (*rcb << 8);
+ rcr++;
+ rcb++;
+ temp |= (*rcr << 16) | (*rcb << 24);
+ rcr++;
+ rcb++;
+ *tmp32 = temp;
+ tmp32++;
}
dest += bespitch;