[xiph-commits] r3757 - liboggplay/trunk/src/liboggplay

doublec at svn.annodex.net doublec at svn.annodex.net
Thu Oct 30 12:46:27 PDT 2008


Author: doublec
Date: 2008-10-30 12:46:27 -0700 (Thu, 30 Oct 2008)
New Revision: 3757

Modified:
   liboggplay/trunk/src/liboggplay/oggplay.c
Log:
Check for EOF when reading initial Ogg data. Ticket #435


Modified: liboggplay/trunk/src/liboggplay/oggplay.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay.c	2008-10-30 18:28:06 UTC (rev 3756)
+++ liboggplay/trunk/src/liboggplay/oggplay.c	2008-10-30 19:46:27 UTC (rev 3757)
@@ -100,7 +100,7 @@
 
   while (1) {
 
-    if (oggz_read(me->oggz, OGGZ_READ_CHUNK_SIZE) < 0) {
+    if (oggz_read(me->oggz, OGGZ_READ_CHUNK_SIZE) <= 0) {
       return E_OGGPLAY_BAD_INPUT;
     }
 



More information about the commits mailing list