Skip to content

Commit 1a40286

Browse files
committed
[fix] interactive: fix crash when displaying last image
1 parent 4381503 commit 1a40286

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/videoreader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ bool VideoReader::getNext(UMat &destination) {
6868
if (destination.channels() >= 3) {
6969
cvtColor(destination, destination, COLOR_BGR2GRAY);
7070
}
71+
m_index++;
7172
return true;
7273
}
7374

0 commit comments

Comments
 (0)