[FFmpeg-cvslog] r17173 - trunk/libavformat/ffmdec.c

bcoudurier subversion
Thu Feb 12 03:17:17 CET 2009


Author: bcoudurier
Date: Thu Feb 12 03:17:16 2009
New Revision: 17173

Log:
return error if read failed

Modified:
   trunk/libavformat/ffmdec.c

Modified: trunk/libavformat/ffmdec.c
==============================================================================
--- trunk/libavformat/ffmdec.c	Thu Feb 12 03:15:07 2009	(r17172)
+++ trunk/libavformat/ffmdec.c	Thu Feb 12 03:17:16 2009	(r17173)
@@ -30,7 +30,8 @@ int64_t ffm_read_write_index(int fd)
     uint8_t buf[8];
 
     lseek(fd, 8, SEEK_SET);
-    read(fd, buf, 8);
+    if (read(fd, buf, 8) != 8)
+        return AVERROR(EIO);
     return AV_RB64(buf);
 }
 




More information about the ffmpeg-cvslog mailing list