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

Monty xiphmont at xiph.org
Tue Sep 24 22:35:38 PDT 2002



xiphmont    02/09/25 01:35:38

  Modified:    examples encoder_example.c player_example.c
  Log:
  tell encoder example not to use vorbis -q 10 by default

Revision  Changes    Path
1.4       +3 -3      theora/examples/encoder_example.c

Index: encoder_example.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/encoder_example.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- encoder_example.c	24 Sep 2002 05:05:49 -0000	1.3
+++ encoder_example.c	25 Sep 2002 05:35:38 -0000	1.4
@@ -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.3 2002/09/24 05:05:49 xiphmont Exp $
+  last mod: $Id: encoder_example.c,v 1.4 2002/09/25 05:35:38 xiphmont Exp $
 
  ********************************************************************/
 
@@ -43,7 +43,7 @@
 int audio_ch=0; 
 int audio_hz=0; 
 
-float audio_q=1;
+float audio_q=.1;
 int audio_r=-1;
 
 int video_x=0;
@@ -56,7 +56,7 @@
 int video_ad=0;
 
 int video_r=-1;
-int video_q=10;
+int video_q=16;
 
 static void usage(void){
   fprintf(stderr,

<p><p>1.7       +2 -2      theora/examples/player_example.c

Index: player_example.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/player_example.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- player_example.c	25 Sep 2002 03:22:31 -0000	1.6
+++ player_example.c	25 Sep 2002 05:35:38 -0000	1.7
@@ -12,7 +12,7 @@
 
   function: example SDL player application; plays Ogg Theora files (with
             optional Vorbis audio second stream)
-  last mod: $Id: player_example.c,v 1.6 2002/09/25 03:22:31 xiphmont Exp $
+  last mod: $Id: player_example.c,v 1.7 2002/09/25 05:35:38 xiphmont Exp $
 
  ********************************************************************/
 
@@ -152,7 +152,7 @@
     exit(1);
   }
   
-  ioctl(audiofd,SNDCTL_DSP_SPEED,&rate);
+  ret=ioctl(audiofd,SNDCTL_DSP_SPEED,&rate);
   if(ret){
     fprintf(stderr,"Could not set %d Hz playback\n",rate);
     exit(1);
@@ -523,7 +523,7 @@
            with non-keyframe seeks.  */
 
         if(videobuf_time>=get_time())
-	  videobuf_ready=1;
+	videobuf_ready=1;
                 
       }else
         break;

<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