问题的可能原因: 可能是传递给avformat_alloc_output_context2()函数的filename参数不对,并不是一个正常的字符串。 问题解决办法: 检查avformat_alloc_output_context2()的输入参数是否都合理。 问题历程: 在使用QT+ffmpeg库做 ...
分类:
其他好文 时间:
2020-07-04 16:46:11
阅读次数:
274
const fs=require('fs'); //比较字符基类大小 相同返回0,str1>str2 返回1,str1<str2 返回-1, function str_compare(str1,str2){ let index=0; let dis=0; while (dis 0&&index<st ...
分类:
编程语言 时间:
2020-07-04 15:35:58
阅读次数:
79
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di ...
分类:
其他好文 时间:
2020-07-04 13:47:53
阅读次数:
61
package LeetCode_295 import java.util.* /** * 295. Find Median from Data Stream * https://leetcode.com/problems/find-median-from-data-stream/descripti ...
分类:
其他好文 时间:
2020-07-04 01:10:12
阅读次数:
49
定位界面元素 1、根据元素特征:id,name,class,tag,超链接 写法1: ele=driver.find_element_by_id('kw') 写法2: from selenium.webdriver.common.by import By ele=driver.find_elemen ...
分类:
其他好文 时间:
2020-07-03 23:25:03
阅读次数:
86
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:
其他好文 时间:
2020-07-03 21:49:23
阅读次数:
77
基本建图套路,从单词头向单词尾连一条边,答案就是是否存在一条欧拉路径 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int p[N]; int din[N],dout[N]; int st[N]; int find( ...
数据库增删改查的通用接口,命名需要严格按照标准,数据库大写单数,请求路径小写复数 ...
分类:
其他好文 时间:
2020-07-03 21:24:50
阅读次数:
59
这是一篇我犯过的各种弱智错误的合集,记录下来以备后用 1.scanf("%d",a); 2.BFS忘记设置队头元素; 3.BFS时忘记每次循环结束后head++ 3.并查集的使用:fa[find(x)] = find(y); 4.(经常导致段错误)邻接表遍历,循环时一顿操作最后忘记将当前边指针指向下 ...
分类:
其他好文 时间:
2020-07-03 21:23:44
阅读次数:
69
一.检查是否安装了本地任务 Crontab systemctl status crond 二.如果没有就安装呀 yum install -y vixie-cron yum install -y crontabs 然后启动: systemctl start crond.service 三.cronta ...
分类:
系统相关 时间:
2020-07-03 21:00:09
阅读次数:
71