Initialize correctly optind.

Patch by Eduardo Bragatto, his name at his surname dot com

Thread http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-January/039835.html

Originally committed as revision 11483 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Eduardo Bragatto 2008-01-09 20:48:02 +00:00 committed by Víctor Paesa
parent 48aecf5a7d
commit a20db8a35c
3 changed files with 3 additions and 3 deletions

View File

@ -172,7 +172,7 @@ int Configure(void **ctxp, int argc, char *argv[])
ci->outline = 0;
ci->text_height = 0;
optind = 0;
optind = 1;
while ((c = getopt(argc, argv, "f:t:T:x:y:s:c:C:bo")) > 0) {
switch (c) {
case 'f':

View File

@ -124,7 +124,7 @@ int Configure(void **ctxp, int argc, char *argv[])
*ctxp = av_mallocz(sizeof(ContextInfo));
ci = (ContextInfo *) *ctxp;
optind = 0;
optind = 1;
ci->dir = "/tmp";
ci->threshold = 100;

View File

@ -160,7 +160,7 @@ int Configure(void **ctxp, int argc, char *argv[])
ci->expr_x = "0.0";
ci->expr_y = "0.0";
optind = 0;
optind = 1;
/* Use ':' to split FONTPATH */
if (fp)