Skip to content

Commit 2aa4755

Browse files
committed
Merge pull request opencv#21301 from alalek:coverity_fixes_4.x
2 parents 374cc41 + 4dbba5a commit 2aa4755

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/videoio/src/cap_gstreamer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ bool GStreamerCapture::grabAudioFrame()
527527
CV_Error(Error::StsError, "GStreamer: gst_audio_info_from_caps() is failed. Can't handle unknown layout");
528528
}
529529
int bpf = GST_AUDIO_INFO_BPF(&info);
530+
CV_CheckGT(bpf, 0, "");
530531

531532
GstStructure* structure = gst_caps_get_structure(frame_caps, 0); // no lifetime transfer
532533
if (!structure)

0 commit comments

Comments
 (0)