[MPlayer-cvslog] CVS: main/libmpcodecs vd_ijpg.c,1.10,1.11

Alan Curry CVS syncmail at mplayerhq.hu
Fri Apr 21 00:44:35 CEST 2006


CVS change done by Alan Curry CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv15156/libmpcodecs

Modified Files:
	vd_ijpg.c 
Log Message:
Fix BGR32 big-endian output


Index: vd_ijpg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ijpg.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- vd_ijpg.c	22 Sep 2002 02:33:25 -0000	1.10
+++ vd_ijpg.c	20 Apr 2006 22:44:33 -0000	1.11
@@ -190,9 +190,15 @@
        // rgb24 -> bgr32
        case IMGFMT_BGR32:
            for(x=0;x<width;x++){
+#ifdef WORDS_BIGENDIAN
+	       drow[4*x+1]=row[3*x+0];
+	       drow[4*x+2]=row[3*x+1];
+	       drow[4*x+3]=row[3*x+2];
+#else
 	       drow[4*x+0]=row[3*x+2];
 	       drow[4*x+1]=row[3*x+1];
 	       drow[4*x+2]=row[3*x+0];
+#endif
 	   }
 	   break;
        }




More information about the MPlayer-cvslog mailing list