小凡慢慢学
慢慢学,更有趣

 

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);  

 

 

 

posted on   小凡慢慢学  阅读(522)  评论(0编辑  收藏  举报
努力加载评论中...

点击右上角即可分享
微信分享提示