Commit b893e71d authored by aurel's avatar aurel

10l inverted condition check generated an endless loop

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6722 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4a2f2711
...@@ -494,7 +494,7 @@ ogg_get_length (AVFormatContext * s) ...@@ -494,7 +494,7 @@ ogg_get_length (AVFormatContext * s)
ogg->size = size; ogg->size = size;
ogg_restore (s, 0); ogg_restore (s, 0);
ogg_save (s); 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) if (i == idx && ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0)
break; 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