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

Mauricio Piacentini mauricio at xiph.org
Mon Jul 7 14:28:00 PDT 2003



mauricio    03/07/07 17:28:00

  Modified:    examples encoder_example.c
  Log:
  correct previous checkin to make the new arguments optional

Revision  Changes    Path
1.25      +7 -7      theora/examples/encoder_example.c

Index: encoder_example.c
===================================================================
RCS file: /usr/local/cvsroot/theora/examples/encoder_example.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- encoder_example.c	7 Jul 2003 20:17:21 -0000	1.24
+++ encoder_example.c	7 Jul 2003 21:28:00 -0000	1.25
@@ -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.24 2003/07/07 20:17:21 mauricio Exp $
+  last mod: $Id: encoder_example.c,v 1.25 2003/07/07 21:28:00 mauricio Exp $
 
  ********************************************************************/
 
@@ -53,10 +53,10 @@
   {"video-rate-target",required_argument,NULL,'V'},
   {"audio-quality",required_argument,NULL,'a'},
   {"video-quality",required_argument,NULL,'v'},
-  {"aspect-numerator",required_argument,NULL,'s'},
-  {"aspect-denominator",required_argument,NULL,'S'},
-  {"framerate-numerator",required_argument,NULL,'f'},
-  {"framerate-denominator",required_argument,NULL,'F'},
+  {"aspect-numerator",optional_argument,NULL,'s'},
+  {"aspect-denominator",optional_argument,NULL,'S'},
+  {"framerate-numerator",optional_argument,NULL,'f'},
+  {"framerate-denominator",optional_argument,NULL,'F'},
   {NULL,0,NULL,0}
 };
 
@@ -249,9 +249,9 @@
 
       /*update fps and aspect ratio globals if not specified in the command line*/
       if (video_hzn==-1) video_hzn = tmp_video_hzn;
-      if (video_hzd==-1) video_hzn = tmp_video_hzd;
-      if (video_an==-1) video_hzn = tmp_video_an;
-      if (video_ad==-1) video_hzn = tmp_video_ad;
+      if (video_hzd==-1) video_hzd = tmp_video_hzd;
+      if (video_an==-1) video_an = tmp_video_an;
+      if (video_ad==-1) video_ad = tmp_video_ad;
 
       if(interlace!='p'){
         fprintf(stderr,"Input video is interlaced; Theora handles only progressive scan\n");

<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