summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2006-10-17 17:19:11 +0000
committerAurelien Jacobs <aurel@gnuage.org>2006-10-17 17:19:11 +0000
commit595da759de5a94def0ee409a72b07d0be36f5d2a (patch)
treeece92b1cdcdee5f3aa2179172d851e785f2bf629
parent4d6ac1a47b1c866bcee6cb48332f435d193264cf (diff)
10l inverted condition check generated an endless loop
Originally committed as revision 6722 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/ogg2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ogg2.c b/libavformat/ogg2.c
index 5f1366965a..1e5d386205 100644
--- a/libavformat/ogg2.c
+++ b/libavformat/ogg2.c
@@ -494,7 +494,7 @@ ogg_get_length (AVFormatContext * s)
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;
}