[MPlayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.137,1.138

Michael Niedermayer CVS syncmail at mplayerhq.hu
Mon Dec 6 05:11:19 CET 2004


CVS change done by Michael Niedermayer CVS

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

Modified Files:
	vd_ffmpeg.c 
Log Message:
fix byteorder


Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -r1.137 -r1.138
--- vd_ffmpeg.c	28 Nov 2004 18:37:49 -0000	1.137
+++ vd_ffmpeg.c	6 Dec 2004 04:11:17 -0000	1.138
@@ -303,9 +303,9 @@
         } else {
 	    /* has extra slice header (demux_rm or rm->avi streamcopy) */
 	    unsigned int* extrahdr=(unsigned int*)(sh->bih+1);
-	    ((uint32_t*)avctx->extradata)[0] = extrahdr[0];
-	    avctx->sub_id=
-	    ((uint32_t*)avctx->extradata)[1] = extrahdr[1];
+	    ((uint32_t*)avctx->extradata)[0] = be2me_32(extrahdr[0]);
+	    avctx->sub_id= extrahdr[1];
+	    ((uint32_t*)avctx->extradata)[1] = be2me_32(extrahdr[1]);
 	}
 
 //        printf("%X %X %d %d\n", extrahdr[0], extrahdr[1]);




More information about the MPlayer-cvslog mailing list