From e0d64df76351f97c1dea5babb09954afbaea63a7 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 16 Jun 2016 12:53:59 +0300 Subject: [PATCH] fixed -Wunused-result warning --- modules/highgui/src/cap_ffmpeg_impl.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp index dc3e10d490..da05bde324 100644 --- a/modules/highgui/src/cap_ffmpeg_impl.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl.hpp @@ -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;