Unified · Split
| @@ -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)); |