AVDictionary* opts = NULL;
av_dict_set(&opts, "localaddr", "192.168.15.15", 0);
// 如果有超时设置,继续使用上述函数,超时的key一般为timeout
int nRet = avformat_open_input(&ctx, url, NULL, &opts);
AVDictionary* opts = NULL;
av_dict_set(&opts, "localaddr", "192.168.15.15", 0);
// 如果有超时设置,继续使用上述函数,超时的key一般为timeout
int nRet = avformat_open_input(&ctx, url, NULL, &opts);