summaryrefslogtreecommitdiff
path: root/ivorbisfile_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'ivorbisfile_example.c')
-rw-r--r--ivorbisfile_example.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/ivorbisfile_example.c b/ivorbisfile_example.c
index 1854fc4..7b0cf10 100644
--- a/ivorbisfile_example.c
+++ b/ivorbisfile_example.c
@@ -21,8 +21,8 @@
#include <stdio.h>
#include <stdlib.h>
-#include <vorbis/ivorbiscodec.h>
-#include <vorbis/ivorbisfile.h>
+#include "ivorbiscodec.h"
+#include "ivorbisfile.h"
#ifdef _WIN32 /* We need the following two to set stdin/stdout to binary */
#include <io.h>
@@ -69,7 +69,12 @@ int main(){
/* EOF */
eof=1;
} else if (ret < 0) {
- /* error in the stream. Not a problem, just reporting it in
+ if(ret==OV_EBADLINK){
+ fprintf(stderr,"Corrupt bitstream section! Exiting.\n");
+ exit(1);
+ }
+
+ /* some other error in the stream. Not a problem, just reporting it in
case we (the app) cares. In this case, we don't. */
} else {
/* we don't bother dealing with sample rate changes, etc, but