ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/src/mpeg_encode/src/main.c
(Generate patch)
# Line 395 | Line 395
395          }
396      }
397  
398 <    if ( ! ReadParamFile(argv[argc-1], function) ) {
399 <        Usage();
398 >    { /* WLD */
399 >      char *pname = NULL;
400 >      if(argc>1) {
401 >        pname = argv[argc-1];
402 >        if(pname[0]=='-')
403 >          pname = NULL;
404 >      }
405 >      if ( ! ReadParamFile(pname, function) ) {
406 >        Usage();
407 >      }
408 >      /* WLD END */
409      }
410  
411      /* Jim Boucher's stuff:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines