diff ogg2.c @ 1397:21755fe31dd7 libavformat

10l inverted condition check generated an endless loop
author aurel
date Tue, 17 Oct 2006 17:19:11 +0000
parents 4146500158b5
children a472266b5d39
line wrap: on
line diff
--- a/ogg2.c	Tue Oct 17 11:30:22 2006 +0000
+++ b/ogg2.c	Tue Oct 17 17:19:11 2006 +0000
@@ -494,7 +494,7 @@
     ogg->size = size;
     ogg_restore (s, 0);
     ogg_save (s);
-    while (ogg_read_page (s, &i)) {
+    while (!ogg_read_page (s, &i)) {
         if (i == idx && ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0)
             break;
     }