Commit 259064e6 authored by Monty's avatar Monty
Browse files

Similarly check for error in seeking_example

svn path=/trunk/vorbis/; revision=16329
parent 23361c7f
......@@ -116,7 +116,10 @@ int main(){
i=0;
while(i<pcmlength*2){
int ret=ov_read(&ov,bigassbuffer+i,pcmlength*2-i,1,1,1,&dummy);
if(ret<0)continue;
if(ret<0){
fprintf(stderr,"Error reading file.\n");
exit(1);
}
if(ret){
i+=ret;
}else{
......
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