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
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':
*ctxp = av_mallocz(sizeof(ContextInfo));
ci = (ContextInfo *) *ctxp;
- optind = 0;
+ optind = 1;
ci->dir = "/tmp";
ci->threshold = 100;
ci->expr_x = "0.0";
ci->expr_y = "0.0";
- optind = 0;
+ optind = 1;
/* Use ':' to split FONTPATH */
if (fp)