<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">r478 | r2d | 2012-03-30 20:54:01 +0100 (Fri, 30 Mar 2012) | 1 line
Changed paths:
   M /libmpc/trunk/libmpcdec/mpc_demux.c

prevent endless loops
------------------------------------------------------------------------
Index: libmpcdec/mpc_demux.c
===================================================================
diff --git a/libmpcdec/mpc_demux.c b/libmpc/libmpcdec/mpc_demux.c
--- a/libmpcdec/mpc_demux.c	(revision 477)
+++ b/libmpcdec/mpc_demux.c	(revision 478)
@@ -633,7 +633,7 @@
 		if (MPC_IS_FAILURE(s))
 			i-&gt;bits = -1; // we pretend it's end of file
 
-		if (MPC_IS_FAILURE(s) || i-&gt;samples &gt; 0)
+		if (i-&gt;bits == -1 || i-&gt;samples &gt; 0)
 			return s;
 	}
 }
</pre></body></html>