changeset 9992:e33317c4d9af

fopen requires binary flag on windows, too
author faust3
date Sat, 26 Apr 2003 12:27:56 +0000
parents 8568ef7f6c2f
children 6e7f3643bee6
files libmpdemux/demux_mf.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mf.c	Sat Apr 26 10:32:45 2003 +0000
+++ b/libmpdemux/demux_mf.c	Sat Apr 26 12:27:56 2003 +0000
@@ -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 );