avcodec/dirac_dwt_template: Fix undefined behavior in interleave()