[MPlayer-cvslog] r37692 - trunk/libmpdemux/demux_mf.c

reimar subversion at mplayerhq.hu
Fri Feb 12 21:15:49 CET 2016


Author: reimar
Date: Fri Feb 12 21:15:49 2016
New Revision: 37692

Log:
demux_mf: check for stat failure.

Modified:
   trunk/libmpdemux/demux_mf.c

Modified: trunk/libmpdemux/demux_mf.c
==============================================================================
--- trunk/libmpdemux/demux_mf.c	Fri Feb 12 21:12:33 2016	(r37691)
+++ trunk/libmpdemux/demux_mf.c	Fri Feb 12 21:15:49 2016	(r37692)
@@ -56,7 +56,7 @@ static int demux_mf_fill_buffer(demuxer_
 
   if ( mf->curr_frame >= mf->nr_of_files ) return 0;
 
-  stat( mf->names[mf->curr_frame],&fs );
+  if (stat( mf->names[mf->curr_frame],&fs ) == -1) return 0;
 //  printf( "[demux_mf] frame: %d (%s,%d)\n",mf->curr_frame,mf->names[mf->curr_frame],fs.st_size );
 
   if ( !( f=fopen( mf->names[mf->curr_frame],"rb" ) ) ) return 0;


More information about the MPlayer-cvslog mailing list