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
pull/126/head
Eduardo Bragatto 17 years ago committed by Víctor Paesa
parent 48aecf5a7d
commit a20db8a35c
  1. 2
      vhook/drawtext.c
  2. 2
      vhook/fish.c
  3. 2
      vhook/imlib2.c

@ -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)

Loading…
Cancel
Save