Commit aa861520 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6689 from ilya-lavrenov:il/fix

parents 77849d00 e0d64df7
......@@ -2287,7 +2287,8 @@ bool OutputMediaStream_FFMPEG::open(const char* fileName, int width, int height,
#if LIBAVFORMAT_BUILD < CALC_FFMPEG_VERSION(53, 2, 0)
av_write_header(oc_);
#else
avformat_write_header(oc_, NULL);
if (avformat_write_header(oc_, NULL) != 0)
return false;
#endif
return true;
......
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