Commit 595da759 authored by Aurelien Jacobs's avatar Aurelien Jacobs

10l inverted condition check generated an endless loop

Originally committed as revision 6722 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4d6ac1a4
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment