avcodec/ivi: Move buffer/block end check to caller of ivi_dc_transform()