mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Merge pull request #4143 from Dikay900:ffmpeg_dict
This commit is contained in:
commit
73031f9ab0
@ -568,7 +568,7 @@ bool CvCapture_FFMPEG::open( const char* _filename )
|
||||
|
||||
#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(52, 111, 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
|
||||
int err = av_open_input_file(&ic, _filename, NULL, 0, NULL);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user