Skip to content

Commit

Permalink
fix missing nv12 case in tensor_buffer_ext
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Oct 16, 2023
1 parent 910292f commit bb69c1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rerun_cpp/src/rerun/datatypes/tensor_buffer_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ namespace rerun {
case detail::TensorBufferTag::F64: {
return _data.f64.size();
}
case detail::TensorBufferTag::NV12: {
assert(
false && "Can't ask for the number of elements in an NV12 encoded image"
);
}
case detail::TensorBufferTag::JPEG: {
assert(false && "Can't ask for the number of elements in a JPEG");
}
Expand Down

0 comments on commit bb69c1e

Please sign in to comment.