From 3e7fbd21e018deb317be70f4628b65a756c47ff6 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Sat, 4 Dec 2010 17:58:45 +0000 Subject: [PATCH] fixed compile errors in cap_qt.cpp (ticket #391) --- modules/highgui/src/cap_qt.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/modules/highgui/src/cap_qt.cpp b/modules/highgui/src/cap_qt.cpp index 3ee71f62e8..a474fed13b 100644 --- a/modules/highgui/src/cap_qt.cpp +++ b/modules/highgui/src/cap_qt.cpp @@ -41,7 +41,6 @@ #include "precomp.hpp" -#include "cv.h" // Original implementation by Mark Asbach // Institute of Communications Engineering @@ -1289,6 +1288,7 @@ static CvVideoWriter_QT* icvCreateVideoWriter_QT( Track video_track = nil; Media video = nil; OSErr err = noErr; + CodecType codecType = kRawCodecType; __BEGIN__ @@ -1347,15 +1347,8 @@ static CvVideoWriter_QT* icvCreateVideoWriter_QT( CV_ERROR( CV_StsInternal, "Cannot create video media" ); } - CodecType codecType; - switch ( fourcc ) { - case CV_FOURCC( 'D', 'I', 'B', ' ' ): - codecType = kRawCodecType; - break; - default: - codecType = kRawCodecType; - break; - } + /*if( fourcc == CV_FOURCC( 'D', 'I', 'B', ' ' )) + codecType = kRawCodecType;*/ // start a compression session err = ICMCompressionSessionOptionsCreate( kCFAllocatorDefault,