dnxhdenc: fix declarations in for loops