From f7866677ebf5f43b2d90c0ae8bb7d80a52c70896 Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Wed, 22 Feb 2012 12:13:56 +0000 Subject: [PATCH] fixed #1615 --- modules/highgui/src/cap_ffmpeg_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp index 8ef2880..d1e41f1 100644 --- a/modules/highgui/src/cap_ffmpeg_impl.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl.hpp @@ -1246,7 +1246,7 @@ bool CvVideoWriter_FFMPEG::writeFrame( const unsigned char* data, int step, int #else img_convert_ctx = sws_getContext(width, height, - PIX_FMT_BGR24, + (PixelFormat)input_pix_fmt, c->width, c->height, c->pix_fmt, -- 2.7.4