[MPlayer-cvslog] r36654 - trunk/libmpdemux/aviheader.c
reimar
subversion at mplayerhq.hu
Sun Jan 19 23:24:50 CET 2014
Author: reimar
Date: Sun Jan 19 23:24:50 2014
New Revision: 36654
Log:
aviheader: Close file also when an index file contains an error.
Modified:
trunk/libmpdemux/aviheader.c
Modified: trunk/libmpdemux/aviheader.c
==============================================================================
--- trunk/libmpdemux/aviheader.c Sun Jan 19 23:24:49 2014 (r36653)
+++ trunk/libmpdemux/aviheader.c Sun Jan 19 23:24:50 2014 (r36654)
@@ -629,10 +629,10 @@ if (index_file_load) {
goto gen_index;
}
}
- fclose(fp);
mp_msg(MSGT_HEADER,MSGL_INFO, MSGTR_MPDEMUX_AVIHDR_IdxFileLoaded, index_file_load);
-}
gen_index:
+ if (fp) fclose(fp);
+}
if(index_mode>=2 || (priv->idx_size==0 && index_mode==1)){
int idx_pos = 0;
// build index for file:
More information about the MPlayer-cvslog
mailing list