simplify, use codec->block_align