From: Alexander Shishkov Date: Wed, 22 Feb 2012 12:13:56 +0000 (+0000) Subject: fixed #1615 X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~5485 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7866677ebf5f43b2d90c0ae8bb7d80a52c70896;p=platform%2Fupstream%2Fopencv.git fixed #1615 --- 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,