Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1396:069c0c5a1baf | 1397:21755fe31dd7 |
---|---|
492 } | 492 } |
493 | 493 |
494 ogg->size = size; | 494 ogg->size = size; |
495 ogg_restore (s, 0); | 495 ogg_restore (s, 0); |
496 ogg_save (s); | 496 ogg_save (s); |
497 while (ogg_read_page (s, &i)) { | 497 while (!ogg_read_page (s, &i)) { |
498 if (i == idx && ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0) | 498 if (i == idx && ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0) |
499 break; | 499 break; |
500 } | 500 } |
501 if (i == idx) { | 501 if (i == idx) { |
502 s->streams[idx]->start_time = ogg_gptopts (s, idx, ogg->streams[idx].granule); | 502 s->streams[idx]->start_time = ogg_gptopts (s, idx, ogg->streams[idx].granule); |