Commit 958d5a0c authored by Alexander Reshetnikov's avatar Alexander Reshetnikov

Solved a problem with VideoWriter in the new wrapper

parent ab0fc847
......@@ -1486,7 +1486,7 @@ bool CvVideoWriter_FFMPEG::open( const char * filename, int fourcc,
#if LIBAVFORMAT_BUILD < CALC_FFMPEG_VERSION(53, 2, 0)
if (url_fopen(&oc->pb, filename, URL_WRONLY) < 0)
#else
if (avio_open(&oc->pb, filename, 1) < 0)
if (avio_open(&oc->pb, filename, AVIO_FLAG_WRITE) < 0)
#endif
{
return false;
......
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