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

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
598 InferenceItem *inference;598 InferenceItem *inference;
599 const AVDetectionBBox *bbox = av_get_detection_bbox(header, i);599 const AVDetectionBBox *bbox = av_get_detection_bbox(header, i);
600 600
601 if (av_strncasecmp(bbox->detect_label, params->target, sizeof(bbox->detect_label)) != 0) {601 if (params->target) {
602 continue;602 if (av_strncasecmp(bbox->detect_label, params->target, sizeof(bbox->detect_label)) != 0) {
603 continue;
604 }
603 }605 }
604 606
605 inference = av_malloc(sizeof(*inference));607 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