A single page audio stream that was also a short page would decode too far.
[platform/upstream/libvorbis.git] / examples / chaining_example.c
index 0a855a2..3910d31 100644 (file)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: illustrate simple use of chained bitstream and vorbisfile.a
- last mod: $Id: chaining_example.c,v 1.17 2002/07/11 06:40:47 xiphmont Exp $
+ last mod: $Id: chaining_example.c,v 1.18 2002/10/11 11:14:41 xiphmont Exp $
 
  ********************************************************************/
 
@@ -45,6 +45,8 @@ int main(){
   if(ov_seekable(&ov)){
     printf("Input bitstream contained %ld logical bitstream section(s).\n",
           ov_streams(&ov));
+    printf("Total bitstream samples: %ld\n\n",
+          (long)ov_pcm_total(&ov,-1));
     printf("Total bitstream playing time: %ld seconds\n\n",
           (long)ov_time_total(&ov,-1));