1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

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

This commit is contained in:
Alexander Alekhin
2016-06-16 11:39:20 +00:00
+2 -1
View File
@@ -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;