Skip to content

Commit e80e54b

Browse files
authored
Bug fix on FilterGraph::filter, nb_filters means the count of the filters, idx should less than the count of the filters. (#134)
1 parent b631ac0 commit e80e54b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filters/filtergraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ FilterContext FilterGraph::filter(unsigned idx, OptionalErrorCode ec)
7070
return FilterContext();
7171
}
7272

73-
if (idx < m_raw->nb_filters) {
73+
if (idx >= m_raw->nb_filters) {
7474
throws_if(ec, Errors::OutOfRange);
7575
return FilterContext();
7676
}

0 commit comments

Comments
 (0)