AVFormatContext *formatCtx = NULL;
formatCtx = avformat_alloc_context();
AVDictionary* options = NULL;
av_dict_set(&options, "rtsp_transport", "tcp", 0);
avformat_open_input(&formatCtx, pszURLPath, NULL, &options) < 0);
ffmepg 指定网络连接模式UDP还是TCP
最新推荐文章于 2024-09-06 15:51:08 发布