Skip to content

Commit

Permalink
C doesn't support default values, it's not CPP, doh...
Browse files Browse the repository at this point in the history
  • Loading branch information
denismakogon committed May 16, 2018
1 parent 5f18673 commit cb55c18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion videoio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void VideoWriter_Close(VideoWriter vw) {
}

void VideoWriter_Open(VideoWriter vw, const char* name, const char* codec, double fps, int width,
int height, bool isColor = true) {
int height, bool isColor) {
int codecCode = cv::VideoWriter::fourcc(codec[0], codec[1], codec[2], codec[3]);
vw->open(name, codecCode, fps, cv::Size(width, height), isColor);
}
Expand Down
2 changes: 1 addition & 1 deletion videoio.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void VideoCapture_Grab(VideoCapture v, int skip);
VideoWriter VideoWriter_New();
void VideoWriter_Close(VideoWriter vw);
void VideoWriter_Open(VideoWriter vw, const char* name, const char* codec, double fps, int width,
int height, bool isColor = true);
int height, bool isColor);
int VideoWriter_IsOpened(VideoWriter vw);
void VideoWriter_Write(VideoWriter vw, Mat img);

Expand Down

0 comments on commit cb55c18

Please sign in to comment.