Skip to content

Commit

Permalink
vstrt/{trt_utils.h, utils.h}: fix typo; suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Jan 12, 2023
1 parent 7644d83 commit 97952cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions vstrt/trt_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ size_t getBytesPerSample(nvinfer1::DataType type) noexcept {
return 1;
case nvinfer1::DataType::kUINT8:
return 1;
default:
return 0;
}
}

Expand Down Expand Up @@ -547,6 +549,8 @@ int getSampleType(nvinfer1::DataType type) noexcept {
case nvinfer1::DataType::kBOOL:
case nvinfer1::DataType::kUINT8:
return 0;
default:
return -1;
}
}

Expand Down
2 changes: 1 addition & 1 deletion vstrt/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ std::optional<std::string> checkNodes(
) noexcept {

for (const auto & vi : vis) {
if (isConstantFormat(vi)) {
if (!isConstantFormat(vi)) {
return "video format must be constant";
}

Expand Down

0 comments on commit 97952cb

Please sign in to comment.