avcodec/dpx: Move need_align to act per line