avoid compile error of opencv_ffmpeg[_64].dll with v2 of FFMPEG wrappers
authorVadim Pisarevsky <no@email>
Mon, 9 Apr 2012 17:18:00 +0000 (17:18 +0000)
committerVadim Pisarevsky <no@email>
Mon, 9 Apr 2012 17:18:00 +0000 (17:18 +0000)
modules/highgui/src/cap_ffmpeg_impl_v2.hpp

index dc2dcea..1d1a6a4 100755 (executable)
@@ -573,7 +573,7 @@ bool CvCapture_FFMPEG::retrieveFrame(int, unsigned char** data, int* step, int*
             );
 
     if (img_convert_ctx == NULL)
-        CV_Error(0, "Cannot initialize the conversion context!");
+        return false;//CV_Error(0, "Cannot initialize the conversion context!");
 
     sws_scale(
             img_convert_ctx,