videoio: don't pass zero fps to 3rd-party codecs
This commit is contained in:
parent
87c27a074d
commit
651a1d2869
@ -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…
Reference in New Issue
Block a user