mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
fixed compile errors in cap_qt.cpp (ticket #391)
This commit is contained in:
parent
b0cc526b0b
commit
3e7fbd21e0
@ -41,7 +41,6 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "precomp.hpp"
|
#include "precomp.hpp"
|
||||||
#include "cv.h"
|
|
||||||
|
|
||||||
// Original implementation by Mark Asbach
|
// Original implementation by Mark Asbach
|
||||||
// Institute of Communications Engineering
|
// Institute of Communications Engineering
|
||||||
@ -1289,6 +1288,7 @@ static CvVideoWriter_QT* icvCreateVideoWriter_QT(
|
|||||||
Track video_track = nil;
|
Track video_track = nil;
|
||||||
Media video = nil;
|
Media video = nil;
|
||||||
OSErr err = noErr;
|
OSErr err = noErr;
|
||||||
|
CodecType codecType = kRawCodecType;
|
||||||
|
|
||||||
__BEGIN__
|
__BEGIN__
|
||||||
|
|
||||||
@ -1347,15 +1347,8 @@ static CvVideoWriter_QT* icvCreateVideoWriter_QT(
|
|||||||
CV_ERROR( CV_StsInternal, "Cannot create video media" );
|
CV_ERROR( CV_StsInternal, "Cannot create video media" );
|
||||||
}
|
}
|
||||||
|
|
||||||
CodecType codecType;
|
/*if( fourcc == CV_FOURCC( 'D', 'I', 'B', ' ' ))
|
||||||
switch ( fourcc ) {
|
codecType = kRawCodecType;*/
|
||||||
case CV_FOURCC( 'D', 'I', 'B', ' ' ):
|
|
||||||
codecType = kRawCodecType;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
codecType = kRawCodecType;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// start a compression session
|
// start a compression session
|
||||||
err = ICMCompressionSessionOptionsCreate( kCFAllocatorDefault,
|
err = ICMCompressionSessionOptionsCreate( kCFAllocatorDefault,
|
||||||
|
Loading…
Reference in New Issue
Block a user