Commit a20db8a3 authored by Eduardo Bragatto's avatar Eduardo Bragatto Committed by Víctor Paesa

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
parent 48aecf5a
......@@ -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':
......
......@@ -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;
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment