[xiph-commits] r14599 - trunk/vorbis/examples
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Tue Mar 18 08:43:35 PDT 2008
Author: xiphmont
Date: 2008-03-18 08:43:35 -0700 (Tue, 18 Mar 2008)
New Revision: 14599
Modified:
trunk/vorbis/examples/decoder_example.c
Log:
Don't crash on successful corrupt file rejection due to being too lazy
to check return vals.
Modified: trunk/vorbis/examples/decoder_example.c
===================================================================
--- trunk/vorbis/examples/decoder_example.c 2008-03-18 15:39:43 UTC (rev 14598)
+++ trunk/vorbis/examples/decoder_example.c 2008-03-18 15:43:35 UTC (rev 14599)
@@ -163,7 +163,11 @@
fprintf(stderr,"Corrupt secondary header. Exiting.\n");
exit(1);
}
- vorbis_synthesis_headerin(&vi,&vc,&op);
+ result=vorbis_synthesis_headerin(&vi,&vc,&op);
+ if(result<0){
+ fprintf(stderr,"Corrupt secondary header. Exiting.\n");
+ exit(1);
+ }
i++;
}
}
More information about the commits
mailing list