From 3b177eaaa3bd2933e9910e21bfdf5a23af8e883d Mon Sep 17 00:00:00 2001 From: Yang Fan Date: Tue, 14 Apr 2015 13:39:00 +0800 Subject: [PATCH] ENH: explicitly declared outputFilename to surpress error C2668 --- samples/gpu/video_writer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/gpu/video_writer.cpp b/samples/gpu/video_writer.cpp index 5a48c69aab..6c5d1412d6 100644 --- a/samples/gpu/video_writer.cpp +++ b/samples/gpu/video_writer.cpp @@ -69,7 +69,8 @@ int main(int argc, const char* argv[]) { std::cout << "Open CUDA Writer" << std::endl; - d_writer = cv::cudacodec::createVideoWriter("output_gpu.avi", frame.size(), FPS); + const cv::String outputFilename = "output_gpu.avi"; + d_writer = cv::cudacodec::createVideoWriter(outputFilename, frame.size(), FPS); } d_frame.upload(frame);