dnxhdenc: fix access outside of image