[xiph-commits] r14640 - trunk/ffmpeg2theora

j at svn.xiph.org j at svn.xiph.org
Thu Mar 27 04:01:12 PDT 2008


Author: j
Date: 2008-03-27 04:01:12 -0700 (Thu, 27 Mar 2008)
New Revision: 14640

Modified:
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
set bitrate first

Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2008-03-27 10:24:18 UTC (rev 14639)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2008-03-27 11:01:12 UTC (rev 14640)
@@ -1812,11 +1812,11 @@
                 convert->video_bitrate=0;
                 break;
             case 'V':
+                convert->video_bitrate=rint(atof(optarg)*1000);
                 if (convert->video_bitrate < 1) {
                     fprintf(stderr, "Only values from 1 to 16000 are valid for video bitrate (in kb/s).\n");
                     exit(1);
                 }
-                convert->video_bitrate=rint(atof(optarg)*1000);
                 convert->video_quality=0;
                 break;
             case 'a':



More information about the commits mailing list