path = @"rtsp://172.17.32.42:9100/DC000010000003E8$00/1?level=0?token=0";
url中包含了一个"$"符号
AVDictionary *options = NULL;
av_dict_set(&options, "stimeout", "500000", 0);
int errCode = avformat_open_input(&formatCtx, [path cStringUsingEncoding: NSUTF8StringEncoding], NULL, &options);
char buf[128];
av_strerror(errCode, buf, 1024);
NSLog(@"%s", [path cStringUsingEncoding: NSUTF8StringEncoding]);
NSLog(@"%d(%s)", errCode, buf);
ffmpeg在avformat_open_input时返回错误-1094995529(Invalid data found when processing input)
将"$"符号换成"@"或者"_"即可返回0,原因暂时未知。