av_log(NULL, AV_LOG_DEBUG, "Unrecognized argument '%s'\n", argv[optind]);
av_log(NULL, AV_LOG_ERROR, "Watermark: Unrecognized argument '%s'\n", argv[optind]);
int Configure(void **ctxp, int argc, char *argv[]){    ContextInfo *ci;    int c;    if (0 == (*ctxp = av_mallocz(sizeof(ContextInfo)))) return -1;    ci = (ContextInfo *) *ctxp;    optind = 0;        // Struct is mallocz:ed so no need to reset.            while ((c = getopt(argc, argv, "f:")) > 0) {        switch (c) {            case 'f':                strncpy(ci->filename, optarg, 1999);                ci->filename[1999] = 0;                break;            default:                av_log(NULL, AV_LOG_DEBUG, "Unrecognized argument '%s'\n", argv[optind]);                return -1;        }    }        //    if (0 == ci->filename[0]) return -1;            av_register_all();    return get_watermark_picture(ci, 0);    return 0;}