Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -598,8 +598,10 @@ static DNNReturnType extract_inference_from_task(DNNFunctionType func_type, Task · 597 unmodified lines | ||
| 598 | 598 | InferenceItem *inference; |
| 599 | 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) { | |
| 602 | − continue; | |
| 601 | + if (params->target) { | |
| 602 | + if (av_strncasecmp(bbox->detect_label, params->target, sizeof(bbox->detect_label)) != 0) { | |
| 603 | + continue; | |
| 604 | + } | |
| 603 | 605 | } |
| 604 | 606 | |
| 605 | 607 | inference = av_malloc(sizeof(*inference)); |