Skip to content

Commit 748deeb

Browse files
authored
PR #11858 from SamerKhshiboun: limit stream index to max 16
2 parents 2db1491 + f89d25c commit 748deeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proc/synthetic-stream.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ namespace librealsense
206206
_stream_filter.format = static_cast<rs2_format>((int)val);
207207
});
208208

209-
auto index_selector = std::make_shared<ptr_option<int>>(-1, std::numeric_limits<int>::max(), 1, -1, &_stream_filter.index, "Stream index");
209+
auto index_selector = std::make_shared<ptr_option<int>>(-1, 16, 1, -1, &_stream_filter.index, "Stream index");
210210
std::weak_ptr<ptr_option<int>> index_selector_ref = index_selector;
211211
index_selector->on_set([this, index_selector_ref](float val)
212212
{

0 commit comments

Comments
 (0)