Commit b5825e68 authored by conrad's avatar conrad

schyeah! ignore some errors in order to return to the previous level of

quality.


git-svn-id: http://svn.annodex.net/liboggz/trunk@379 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 1381c17e
......@@ -345,7 +345,7 @@ oggz_read (OGGZ * oggz, long n)
/* If there's nothing to read yet, don't flag an error */
if (reader->current_unit == 0 && cb_ret == -404) cb_ret = 0;
while (cb_ret == 0 && bytes_read > 0 && remaining > 0) {
while (cb_ret != -1 && bytes_read > 0 && remaining > 0) {
bytes = MIN (remaining, 4096);
buffer = ogg_sync_buffer (&reader->ogg_sync, bytes);
if ((bytes_read = (long)fread (buffer, 1, bytes, oggz->file)) == 0) {
......@@ -390,7 +390,7 @@ oggz_read_input (OGGZ * oggz, unsigned char * buf, long n)
/* If there's nothing to read yet, don't flag an error */
if (reader->current_unit == 0 && cb_ret == -404) cb_ret = 0;
while (cb_ret == 0 && /* !oggz->eos && */ remaining > 0) {
while (cb_ret != -1 && /* !oggz->eos && */ remaining > 0) {
bytes = MIN (remaining, 4096);
buffer = ogg_sync_buffer (&reader->ogg_sync, bytes);
memcpy (buffer, buf, bytes);
......
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