We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 374cc41 + 4dbba5a commit 2aa4755Copy full SHA for 2aa4755
modules/videoio/src/cap_gstreamer.cpp
@@ -527,6 +527,7 @@ bool GStreamerCapture::grabAudioFrame()
527
CV_Error(Error::StsError, "GStreamer: gst_audio_info_from_caps() is failed. Can't handle unknown layout");
528
}
529
int bpf = GST_AUDIO_INFO_BPF(&info);
530
+ CV_CheckGT(bpf, 0, "");
531
532
GstStructure* structure = gst_caps_get_structure(frame_caps, 0); // no lifetime transfer
533
if (!structure)
0 commit comments