[vlc-commits] vdr: clarify

Rémi Denis-Courmont git at videolan.org
Wed Aug 20 19:44:20 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 20 20:43:59 2014 +0300| [2f85ce3036d94b40ba3e72eb22bf5f6fb2f341b8] | committer: Rémi Denis-Courmont

vdr: clarify

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f85ce3036d94b40ba3e72eb22bf5f6fb2f341b8
---

 modules/access/vdr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/vdr.c b/modules/access/vdr.c
index 20ecba7..16e563f 100644
--- a/modules/access/vdr.c
+++ b/modules/access/vdr.c
@@ -892,7 +892,7 @@ static bool ReadIndexRecord( FILE *p_file, bool b_ts, int64_t i_frame,
     uint8_t index_record[8];
     if( fseek( p_file, sizeof(index_record) * i_frame, SEEK_SET ) != 0 )
         return false;
-    if( fread( &index_record, sizeof(index_record), 1, p_file ) <= 0 )
+    if( fread( &index_record, sizeof(index_record), 1, p_file ) < 1 )
         return false;
 
     /* VDR usually (only?) runs on little endian machines, but VLC has a



More information about the vlc-commits mailing list