[xiph-cvs] cvs commit: theora/examples encoder_example.c splayer.c

Ralph Giles giles at xiph.org
Tue Jun 10 04:42:46 PDT 2003



giles       03/06/10 07:42:46

  Modified:    examples encoder_example.c splayer.c
  Log:
  warning cleanup.

Revision  Changes    Path
1.22      +5 -6      theora/examples/encoder_example.c

Index: encoder_example.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/encoder_example.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- encoder_example.c	10 Jun 2003 01:31:32 -0000	1.21
+++ encoder_example.c	10 Jun 2003 11:42:45 -0000	1.22
@@ -12,7 +12,7 @@
 
   function: example encoder application; makes an Ogg Theora/Vorbis
             file from YUV4MPEG2 and WAV input
-  last mod: $Id: encoder_example.c,v 1.21 2003/06/10 01:31:32 tterribe Exp $
+  last mod: $Id: encoder_example.c,v 1.22 2003/06/10 11:42:45 giles Exp $
 
  ********************************************************************/
 
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <getopt.h>
+#include <time.h>
 #include <math.h>
 #include "theora/theora.h"
 #include "vorbis/codec.h"
@@ -168,7 +169,7 @@
             (buffer[10]<<16)+(buffer[11]<<24);
 
           if(buffer[18]+(buffer[19]<<8)!=16){
-            fprintf(stderr,"Can only read 16 bit WAV files for now.\n",f);
+            fprintf(stderr,"Can only read 16 bit WAV files for now.\n");
             exit(1);
           }
 
@@ -212,8 +213,6 @@
 
     if(!memcmp(buffer,"MPEG",4)){
       char interlace;
-      int aspectn;
-      int aspectd;
 
       if(video){
         /* umm, we already have one */
@@ -234,7 +233,7 @@
       }
 
       if(interlace!='p'){
-        fprintf(stderr,"Input video is interlaced; Theora handles only progressive scan\n",f);
+        fprintf(stderr,"Input video is interlaced; Theora handles only progressive scan\n");
         exit(1);
       }
 
@@ -454,7 +453,7 @@
 }
 
 int main(int argc,char *argv[]){
-  int c,long_option_index,ret,i,j;
+  int c,long_option_index,ret;
 
   ogg_stream_state to; /* take physical pages, weld into a logical
                            stream of packets */

<p><p>1.2       +3 -0      theora/examples/splayer.c

Index: splayer.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/splayer.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- splayer.c	10 Jun 2003 03:00:58 -0000	1.1
+++ splayer.c	10 Jun 2003 11:42:46 -0000	1.2
@@ -369,6 +369,9 @@
     return (1<<numBits);
 }
 
+/* forward prototype */
+PaError CloseAudioStream( PASTREAMIO_Stream *aStream );
+
 /************************************************************
  * Opens a PortAudio stream with default characteristics.
  * Allocates PASTREAMIO_Stream structure.

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list