From 595da759de5a94def0ee409a72b07d0be36f5d2a Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Tue, 17 Oct 2006 17:19:11 +0000 Subject: [PATCH] 10l inverted condition check generated an endless loop Originally committed as revision 6722 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/ogg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }