[FFmpeg-cvslog] r11483 - in trunk/vhook: drawtext.c fish.c imlib2.c

victor subversion
Wed Jan 9 21:48:03 CET 2008


Author: victor
Date: Wed Jan  9 21:48:02 2008
New Revision: 11483

Log:
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


Modified:
   trunk/vhook/drawtext.c
   trunk/vhook/fish.c
   trunk/vhook/imlib2.c

Modified: trunk/vhook/drawtext.c
==============================================================================
--- trunk/vhook/drawtext.c	(original)
+++ trunk/vhook/drawtext.c	Wed Jan  9 21:48:02 2008
@@ -172,7 +172,7 @@ int Configure(void **ctxp, int argc, cha
     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':

Modified: trunk/vhook/fish.c
==============================================================================
--- trunk/vhook/fish.c	(original)
+++ trunk/vhook/fish.c	Wed Jan  9 21:48:02 2008
@@ -124,7 +124,7 @@ int Configure(void **ctxp, int argc, cha
     *ctxp = av_mallocz(sizeof(ContextInfo));
     ci = (ContextInfo *) *ctxp;
 
-    optind = 0;
+    optind = 1;
 
     ci->dir = "/tmp";
     ci->threshold = 100;

Modified: trunk/vhook/imlib2.c
==============================================================================
--- trunk/vhook/imlib2.c	(original)
+++ trunk/vhook/imlib2.c	Wed Jan  9 21:48:02 2008
@@ -160,7 +160,7 @@ int Configure(void **ctxp, int argc, cha
     ci->expr_x = "0.0";
     ci->expr_y = "0.0";
 
-    optind = 0;
+    optind = 1;
 
     /* Use ':' to split FONTPATH */
     if (fp)




More information about the ffmpeg-cvslog mailing list