Commit 73031f9a authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #4143 from Dikay900:ffmpeg_dict

parents 59ed7d06 902e3812
...@@ -568,7 +568,7 @@ bool CvCapture_FFMPEG::open( const char* _filename ) ...@@ -568,7 +568,7 @@ bool CvCapture_FFMPEG::open( const char* _filename )
#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(52, 111, 0) #if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(52, 111, 0)
av_dict_set(&dict, "rtsp_transport", "tcp", 0); av_dict_set(&dict, "rtsp_transport", "tcp", 0);
int err = avformat_open_input(&ic, _filename, NULL, NULL); int err = avformat_open_input(&ic, _filename, NULL, &dict);
#else #else
int err = av_open_input_file(&ic, _filename, NULL, 0, NULL); int err = av_open_input_file(&ic, _filename, NULL, 0, NULL);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment