[Mplayer-cvslog] CVS: main/libmpdemux demux_mf.c,1.12,1.13

Sascha Sommer CVS faust3 at mplayerhq.hu
Sat Apr 26 14:28:22 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv1726/libmpdemux

Modified Files:
	demux_mf.c 
Log Message:
fopen requires binary flag on windows, too

Index: demux_mf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mf.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- demux_mf.c	20 Apr 2003 14:31:20 -0000	1.12
+++ demux_mf.c	26 Apr 2003 12:27:56 -0000	1.13
@@ -41,7 +41,11 @@
   stat( mf->names[mf->curr_frame],&fs );
 //  printf( "[demux_mf] frame: %d (%s,%d)\n",mf->curr_frame,mf->names[mf->curr_frame],fs.st_size );
 
+#ifdef WIN32
+  if ( !( f=fopen( mf->names[mf->curr_frame],"rb" ) ) ) return 0;
+#else
   if ( !( f=fopen( mf->names[mf->curr_frame],"r" ) ) ) return 0;
+#endif
   {
    sh_video_t     * sh_video = demuxer->video->sh;
    demux_packet_t * dp = new_demux_packet( fs.st_size );



More information about the MPlayer-cvslog mailing list