samples: video: capture: fix index increment in caps display

Since the i index is already being incremented as part of the
for loop statement, the i++ done as part of the loop body should
not be done since this lead to skip of entries of the table and
moreover might lead to invalid access outside of the table.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 file changed