History

lavfi/dnn_backend_openvino.c: fix crash when target is not specified

Guo Yejun committed 5 years ago

Commit 2cf95f21 parent b51c2c41 file · +4 −2Browse files

Showing the changes to libavfilter/dnn (1 of 1 file). Show all

Unified · Split

libavfilter/dnn/dnn_backend_openvino.c+4−2
@@ -598,8 +598,10 @@ static DNNReturnType extract_inference_from_task(DNNFunctionType func_type, Task · 597 unmodified lines
598598 InferenceItem *inference;
599599 const AVDetectionBBox *bbox = av_get_detection_bbox(header, i);
600600
601− if (av_strncasecmp(bbox->detect_label, params->target, sizeof(bbox->detect_label)) != 0) {
602− continue;
601+ if (params->target) {
602+ if (av_strncasecmp(bbox->detect_label, params->target, sizeof(bbox->detect_label)) != 0) {
603+ continue;
604+ }
603605 }
604606
605607 inference = av_malloc(sizeof(*inference));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t