video: fix warnings about unused variables when building without duff's loop (cherry picked from commit 0c3777d5661dd0bf60ba3db634f79c2121371092)