changeset 540:62c4c304a997 trunk

[svn] - handle OV_HOLE gracefully
author nenolod
date Tue, 23 Jan 2007 06:25:58 -0800
parents f17fb87c0288
children db5f05be1752
files ChangeLog src/vorbis/vorbis.c
diffstat 2 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jan 23 06:24:14 2007 -0800
+++ b/ChangeLog	Tue Jan 23 06:25:58 2007 -0800
@@ -1,3 +1,11 @@
+2007-01-23 14:24:14 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1164]
+  - some tweaks
+  
+  trunk/src/vorbis/vorbis.c |    5 +++--
+  1 file changed, 3 insertions(+), 2 deletions(-)
+
+
 2007-01-23 14:22:01 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1162]
   - remove other debug notices
--- a/src/vorbis/vorbis.c	Tue Jan 23 06:24:14 2007 -0800
+++ b/src/vorbis/vorbis.c	Tue Jan 23 06:25:58 2007 -0800
@@ -363,10 +363,12 @@
                                               pcmout, rg_scale);
     }
     else {
-        bytes =
-            ov_read(&vf, pcmout, sizeof(pcmout),
-                    (int) (G_BYTE_ORDER == G_BIG_ENDIAN),
-                    2, 1, &current_section);
+        do {
+            bytes =
+                ov_read(&vf, pcmout, sizeof(pcmout),
+                        (int) (G_BYTE_ORDER == G_BIG_ENDIAN),
+                         2, 1, &current_section);
+	} while (bytes == OV_HOLE);
     }
 
     /*