mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
48aecf5a7d
commit
a20db8a35c
@ -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…
Reference in New Issue
Block a user