From 2a86264bbe06e4e24e86170ece78e0ed8bf24e32 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 17 Aug 2006 19:57:20 +0200 Subject: [PATCH] Slightly reworked the final write loop. --- ext/vcedit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/vcedit.c b/ext/vcedit.c index 70eae05..75bf80d 100644 --- a/ext/vcedit.c +++ b/ext/vcedit.c @@ -512,7 +512,7 @@ vcedit_write (vcedit_state *state) /* clear it, because not all paths to here do */ state->eosin = 0; - while (!state->eosin) { /* We reached eos, not eof */ + do { /* We copy the rest of the stream (other logical streams) * through, a page at a time. */ @@ -537,7 +537,7 @@ vcedit_write (vcedit_state *state) ogg_sync_wrote (&state->oy, bytes); state->eosin = !bytes && feof (state->in); - } + } while (!state->eosin); fclose (out); fclose (state->in); -- 2.30.2