videoio: don't pass zero fps to 3rd-party codecs

pull/9326/head
Vladislav Sovrasov 7 years ago
parent 87c27a074d
commit 651a1d2869
  1. 2
      modules/videoio/src/cap.cpp

@ -382,6 +382,8 @@ static CvVideoWriter* cvCreateVideoWriterWithPreference(const char* filename, in
if(!fourcc || !fps)
TRY_OPEN(result, cvCreateVideoWriter_Images(filename))
CV_Assert(result || fps != 0);
switch(apiPreference)
{
default:

Loading…
Cancel
Save